problem saving variable
#1

Hello,

There is my code who save the variable Note1:

Код:
format(string, sizeof(string), "UPDATE players SET Note1=%s WHERE id=%d",
PlayerInfo[playerid][pNote1],
PlayerInfo[pSQLID]);
But, I got this error:

Код:
CMySQLHandler::Query(UPDATE players SET Note1= WHERE id=) - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Note2' at line 1)
This is the table:
When I do printf("Note1: %s",PlayerInfo[playerid][pNote1]");, He return None, what I want in my table...

Regards
Reply


Messages In This Thread
problem saving variable - by jcvag44800 - 08.05.2014, 13:25
Re: problem saving variable - by ikbenremco - 08.05.2014, 13:29
Re : problem saving variable - by jcvag44800 - 08.05.2014, 13:36
Re: problem saving variable - by ikbenremco - 08.05.2014, 13:38
Re : problem saving variable - by jcvag44800 - 08.05.2014, 13:42
Re: problem saving variable - by ikbenremco - 08.05.2014, 13:55
Re : problem saving variable - by jcvag44800 - 08.05.2014, 13:58
Re: Re : problem saving variable - by ikbenremco - 08.05.2014, 15:46
Re : problem saving variable - by jcvag44800 - 08.05.2014, 16:25
Re : problem saving variable - by jcvag44800 - 11.05.2014, 11:09

Forum Jump:


Users browsing this thread: 3 Guest(s)