18.07.2011, 18:19
If you are only passing one variable to the callback, you can use mysql_query, mysql_query_array is only used when passing multiple parameters to the callback.
mysql_query prototype:
The spareid would be the playerid you want to pass like so:
OR, if you really want to use mysql_query_array, you can just do:
and not use the second index.
mysql_query prototype:
Код:
mysql_query(const query[], resultid = (-1), spareid = (-1), MySQL:handle = (MySQL:0));
Код:
mysql_query(query, MYSQL_CHECKFORACCOUNT, playerid, server);
Код:
mysql_query_array(query, MYSQL_CHECKFORACCOUNT, {playerid, 0}, server);