MySQL Error
#1

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.
Reply
#2

Quote:

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)