25.02.2013, 00:29
C:\Users\samp\Desktop\Catalyst Roleplay\gamemodes\TGRP.pwn(8994) : error 035: argument type mismatch (argument 1)
The error is in this line:
I'm not sure why I'm getting this error because I've done it before like this but instead of this way I did it in a while loop.
PHP код:
new query[128], queryTwo[128], tmpVal;
format(query, sizeof(query), "SELECT * FROM `crimes` WHERE `player`='%s' AND `arrested`='0'", pNameEx(playerid));
mysql_query(query);
mysql_store_result();
mysql_fetch_field_row(tmpVal, "id");
format(queryTwo, sizeof(queryTwo), "UPDATE `crimes` SET `arrested`='1' WHERE `player`='%s' AND `id`='%d'", pNameEx(playerid), tmpVal);
mysql_query(queryTwo);
PHP код:
mysql_fetch_field_row(tmpVal, "id");