Mysql Query Problem
#1

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

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)