How to save and Load String. using mysql>?
#1

Like this i try to save 2 string Banreason and banadmin
its not saving,....
Код:
		pInfo[playerid][BanReason] = reason;
		pInfo[playerid][BanAdmin] = ServerBan;
       	new query[128];
  		mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `Ban`=%d ,`BanAdmin`=%s ,`BanReason`=%s WHERE `ID`=%d",\
    	pInfo[playerid][Banned],pInfo[playerid][BanAdmin],pInfo[playerid][BanReason],pInfo[playerid][PDID]);
  		mysql_tquery(mysql, query );
I got this Error

[03:52:33] [ERROR] CMySQLQuery::Execute[] - (error #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 ' Fly hack WHERE `ID`=1' at line 1

and also how i can load that when he connect again BanAdmin string and BanReason string how i can load them?
Reply


Messages In This Thread
How to save and Load String. using mysql>? - by MBilal - 22.08.2015, 12:17
Re: How to save and Load String. using mysql>? - by ZBits - 22.08.2015, 12:42
Re: How to save and Load String. using mysql>? - by Dokins - 22.08.2015, 14:47
Re: How to save and Load String. using mysql>? - by MBilal - 22.08.2015, 16:21
Re: How to save and Load String. using mysql>? - by Logofero - 22.08.2015, 16:33
Re: How to save and Load String. using mysql>? - by MBilal - 22.08.2015, 16:37
Re: How to save and Load String. using mysql>? - by Sjn - 22.08.2015, 16:43
Re: How to save and Load String. using mysql>? - by Logofero - 22.08.2015, 16:43

Forum Jump:


Users browsing this thread: 2 Guest(s)