13.12.2012, 01:26
Hi guys im trying to store some coordinates into MSQL and it doesnt seem to work. I think im messing up my MSQL code. Heres the script:
everything compiles, but i dont get the coordinates into MSQL. Anyone know whats the problem? Thank you.
pawn Код:
{
new string[128];
GetPlayerPos(i, x, y, z);
format(string, sizeof(string), "UPDATE `Users` SET `afkX` = '%s' AND `afkY` = '%s' AND `afkZ` = '%s' WHERE `Name` = '%s'", x, y, z, vardas);
mysql_query(string);
afkn[i] = 1;
}