error 022: must be lvalue (non-constant)
#1

Hi everyone,

I am getting this error when changing a few lines in my script...
this is the error:
Код:
error 022: must be lvalue (non-constant)
and below, is one of the lines that gives the error..

pawn Код:
if(GetPVarInt(playerid,"Rank") == 1) {SendClientMessage(playerid,COLOR_WHITE,"You have received your paycheck!") && format(paydaystring,sizeof(paydaystring),"Received money: 300$") && newmoney[playerid] = 300;}
Maybe i miss something, but what is not okay in my code?

I hope someone sees,

Thanks in advance
Reply
#2

pawn Код:
f(GetPVarInt(playerid,"Rank") == 1) {SendClientMessage(playerid,COLOR_WHITE,"You have received your paycheck!");format(paydaystring,sizeof(paydaystring),"Received money: 300$") ;newmoney[playerid] = 300;}
Since you're using those functions in brackets, why use &&, and not ;?
Reply
#3

My mistake
let me try it that way
thanks
EDIT: it works, thanks alot
Reply
#4

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
My mistake
let me try it that way
thanks
EDIT: it works, thanks alot
No problem! (:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)