Raised This Month: $ Target: $400
 0% 

MySql save/load problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
spirit
Senior Member
Join Date: Jul 2009
Location: Quimper
Old 05-05-2012 , 13:18   Re: MySql save/load problem
Reply With Quote #3

hmm this parts is my error ?WHERE `myfirsttable`.`steamid` = '%s'

Code:
public Save_MySql(id)
{
    new SteamId[32], name[32], szTemp[512]
    get_user_name(id, name, charsmax(name))
    get_user_authid(id, SteamId, charsmax(SteamId))
        
    format(szTemp,charsmax(szTemp),"UPDATE `myfirsttable` SET jobid = ^"%d^", money = ^"%d^", bank = ^"%d^", name = ^"%s^"  WHERE steamid = ^"%s^";", g_jobclass[id], money[id], MoneyAccount[id], name, SteamId)
    SQL_ThreadQuery(g_SqlTuple,"IgnoreHandle",szTemp)
}

Last edited by spirit; 05-05-2012 at 13:24.
spirit is offline
 



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 00:21.


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