Raised This Month: $ Target: $400
 0% 

MySQL Help.... Please?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blackops7799
Senior Member
Join Date: May 2006
Old 01-24-2007 , 17:42   MySQL Help.... Please?
Reply With Quote #1

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 }

Last edited by blackops7799; 01-26-2007 at 16:54.
blackops7799 is offline
blackops7799
Senior Member
Join Date: May 2006
Old 01-25-2007 , 19:59   Re: MySQL Help
Reply With Quote #2

**Bump**?
blackops7799 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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