AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   MySQL Help.... Please? (https://forums.alliedmods.net/showthread.php?t=50358)

blackops7799 01-24-2007 17:42

MySQL Help.... Please?
 
Hey, on my server the stats and levels are all saving into the database.

But its not loading them correctly.

I want it to set xp[id], kills[id] and level[id] to what is in the database.
I thought i did this right, but i guess not...

Code:
public client_putinserver(id) {     new authid[32], query[265]     get_user_authid(id,authid,31)     format(query,255,"SELECT exp,level,kills FROM users WHERE steamid='%s'",authid)     if(dbi_nextrow(result) > 0)     {         xp[id] = dbi_field(result,1)         kills[id] = dbi_field(result,2)         level[id] = dbi_field(result,3)         dbi_free_result(result)     }     return PLUGIN_HANDLED }

blackops7799 01-25-2007 19:59

Re: MySQL Help
 
**Bump**?


All times are GMT -4. The time now is 22:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.