Need help with variables
#1

Hello,
I have some errors with my variables and I don't really get how it works can some one explaint to to me?
Errors:
Код:
(126) : error 029: invalid expression, assumed zero
(154) : error 029: invalid expression, assumed zero
(154) : warning 215: expression has no effect
(154) : error 001: expected token: ";", but found ")"
(154) : error 029: invalid expression, assumed zero
(154) : fatal error 107: too many error messages on one line
Line126:
Код:
		mysql_fetch_field_row(savingstring, "XPOS"); /*XPOS VARIABLE*/ = strval(savingstring);
Line 154:
Код:
		format(query, sizeof(query), "UPDATE playerdata SET score=%d, money=%d, WHERE user='%s'", score, money,/*XPOS VARIABLE*/, pname);
Reply
#2

Any one?
Reply
#3

This

pawn Код:
mysql_fetch_field_row(savingstring, "XPOS"); /*XPOS VARIABLE*/ = strval(savingstring);
Should become

pawn Код:
mysql_fetch_field_row(savingstring, "XPOS");
PlayerInfo[playerid][xPos] = floatstr(savingstring);
// Assuming that 'PlayerInfo[playerid][xPos]'is the variable where you want to save that xPos
And you should replace every /*XPOS VARIABLE*/ with your actual variable...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)