SA-MP Forums Archive
Mysql Query Problem - 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 Query Problem (/showthread.php?tid=292018)



Mysql Query Problem - i514x - 22.10.2011

I've got this code
Код:
mysql_query_array(string, MYSQL_RESULT_RESET_POBJECTS, {playerid, index});
and get this error
Код:
error 008: must be a constant expression; assumed zero
I did the same as on the wiki page https://sampwiki.blast.hk/wiki/MySQL_Plu...ysqlQueryArray

Tried making an array, putting the values there but then I get some weird numbers on OnMysqlQueryArray

//Edit: I'm using MySQL Plugin by StrickenKid (https://sampforum.blast.hk/showthread.php?tid=122983)


Re: Mysql Query Problem - [HiC]TheKiller - 22.10.2011

You should take out the brackets and try it '{' and '}'.


Re: Mysql Query Problem - i514x - 22.10.2011

I think u read it wrong, I got { } not ( ) :P


Re: Mysql Query Problem - Max_Coldheart - 22.10.2011

try
pawn Код:
mysql_query_array(string, MYSQL_RESULT_RESET_POBJECTS, playerid, index);



Re: Mysql Query Problem - i514x - 22.10.2011

Nope, doesn't work ;/
Edit: Noticed that { int variables } only work with proper numbers, not variables, but how i suppost to do this lol.