10.08.2010, 11:29
I have this code,
But Im getting errored in the mysql log.
The error is as follows
Check the manual that corresponds to your MySQL server version for the right syntax to use near ''Weap' at line 1)
Reguards
pawn Код:
format(stq,sizeof(stq),"Weapon Cheats, Weapon: %d",BannedWeapons[j]);
CheckMySQL();
format(string, sizeof(string), "INSERT INTO bans (Name,IPAddress,Reason,BanExpiring,Date) VALUES ('%s','%s','%s','%s','%s')", PlayerName(i),GetIP(i),stq,str);
mysql_query(string);
The error is as follows
Check the manual that corresponds to your MySQL server version for the right syntax to use near ''Weap' at line 1)
Reguards