Sorry for bringing this thread back up but I never got back to it and when I did it still doesn't work. I know the problem but I don't know a solution.
So if I do this:
Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `users` SET vReg=`%s` WHERE `ID`=%d", PlayerInfo[playerid][vReg], PlayerInfo[playerid][ID]);
mysql_tquery(mysql, query);
It thinks that the string is a column in my database and returns the error "Unknown column" followed by the string.
If I do this:
Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `users` SET `vReg`=%s WHERE `ID`=%d", PlayerInfo[playerid][vReg], PlayerInfo[playerid][ID]);
mysql_tquery(mysql, query);
It also doesn't work because the string has spaces in it which would return this in an fprint:
Код:
UPDATE `users` SET `vReg`=15 LV 1809 WHERE `25`=%d
If I do this:
Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `users` SET `vReg`=`%s` WHERE `ID`=%d", PlayerInfo[playerid][vReg], PlayerInfo[playerid][ID]);
mysql_tquery(mysql, query);
It still thinks the string is a column.
How do I resolve this?