SA-MP Forums Archive
help with mysql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help with mysql (/showthread.php?tid=415847)



help with mysql - maverape - 15.02.2013

Hello, I'm having some troubles.

This is my format
mysql_format(myddb, query, "UPDATE %s SET player=%s WHERE id=%d", pNome(playerid), str, GetPVarInt(playerid, "test");

UPDATE = player's name (each player has his/her own table)
SET = I'm using to write/save some stuff
WHERE = just a random ID

My problem is
Error will be triggered to OnQueryError().


If you guys didn't get I'll explain better

Table player's name

Inside of this table, there's only two columns.
I want to update the player's name, but how should I search for that?