Crashing on array set
#1

account[playerid][pColor] = strval(querystring);

is crashing my command. Any clues why?

Here's more of the code:

pawn Код:
new resultline[64];
format(querystring,sizeof(querystring),"SELECT Email,Color,Level,Beta,Score,Cash,NOS,PMA,ClickMode,NoTele,Ads,DMTUT,X,Y,Z,A,I,Jailed,SAVEX,SAVEY,SAVEZ,SAVEA,SAVEINT FROM users WHERE Name = '%s' LIMIT 1",pName[playerid]);
mysql_query(querystring);
mysql_store_result();
mysql_fetch_row_format(resultline);
mysql_fetch_field_row(querystring,"Color");
account[playerid][pColor] = strval(querystring);
Reply
#2

Print the string before attempting to parse it with strval
Reply
#3

I'm going to change over to the pvar system.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)