Array Error
#1

Код:
static row = 1;
if(mysql_num_rows()>1) row = mysql_num_rows();
new str[row];
I get error at 'new str[row];'.

Error:
error 008: must be a constant expression; assumed zero
error 009: invalid array size (negative, zero or out of bounds)
error 036: empty statement
fatal error 107: too many error messages on one line
Reply
#2

str size must be constant, for example

pawn Код:
new str[64];
Reply
#3

I see that you want to create an dynamic array there.
You can't create dynamic arrays in sa-mp
Reply
#4

OMG!, Thanks anyways.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)