SA-MP Forums Archive
MySQL Error - 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: MySQL Error (/showthread.php?tid=418504)



MySQL Error - mrtms - 25.02.2013

C:\Users\samp\Desktop\Catalyst Roleplay\gamemodes\TGRP.pwn(8994) : error 035: argument type mismatch (argument 1)

PHP код:
new query[128], queryTwo[128], tmpVal;
        
format(querysizeof(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(queryTwosizeof(queryTwo), "UPDATE `crimes` SET `arrested`='1' WHERE `player`='%s' AND `id`='%d'"pNameEx(playerid), tmpVal);
mysql_query(queryTwo); 
The error is in this line:
PHP код:
mysql_fetch_field_row(tmpVal"id"); 
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.


Re: MySQL Error - Pets - 25.02.2013

Quote:

new query[128], queryTwo[128], tmpVal[128] ;

Or
go to https://sampwiki.blast.hk/wiki/MySQL#mysql_fetch_field_row