24.05.2017, 09:07
Hi, I am using latest mysql script.
How i can store 2 data at once
example:
i tried this code not working
but when i do single it saves
How i can store 2 data at once
example:
Код:
new query[70]; mysql_format(g_SQL, query, sizeof query, "UPDATE `players` SET `owner` = %d,`health` = %f WHERE `id` = %d LIMIT 1", Player[playerid][Owner],Player[playerid][Health], Player[playerid][ID]); mysql_tquery(g_SQL, query);
but when i do single it saves
Код:
new query[70]; mysql_format(g_SQL, query, sizeof query, "UPDATE `players` SET `owner` = %d WHERE `id` = %d LIMIT 1", Player[playerid][Owner], Player[playerid][ID]); mysql_tquery(g_SQL, query);