First of all i would like to say that i know some php and html so feel free to tell me what i should do. Although this is my first time making something with the paypal button and sending it into my mysql database
database.lua
[lua]
function isDonator(ply)
local db, error = <span class="highlight">mysql</span>.connect("HOST", "USERNAME", "PASSWORD", "DATABASE")
if(db == 0) then
Msg(error .. "\n")
end
local preload, checkexist = <span class="highlight">mysql</span>.query(db, "SELECT * FROM DATABASE WHERE steamid='"..tostring(ply:SteamID()).."')");
if(checkexist == false) then
Msg("Account doesn't exist\n")
sb_team1(ply)
else
sb_team3(ply)
end
<span class="highlight">mysql</span>.disconnect(db)
end
[/lua]
As you can see it selects the steamid from the user and i think i got it to compare it with the clients steam id to see if they are in the database
If so they will join the VIP team which is Team 3 and if not they will join Team 1
Now here is where i am confused.. When the player joins it doesn't seem to be able to find the steam id.... There fore wont be able to give the right weapons...
If you need more information please tell me and i will provide it.. As long as its not like database name and stuff like that XD
So any help/ideas?
Sorry, you need to Log In to post a reply to this thread.