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

Getting error...

pawn Code:
{
                new Float:weed;
                GetPVarFloat(playerid, "druglvls") = High; //this line gives error
            }
There is more to the script, but thats not causing errors.

It gives error "error 022: must be lvalue (non-constant)" And warning "warning 215: expression has no effect"
Reply
#2

Switch the two. You want to assign a value to high, not the the other way round.
pawn Code:
High = GetPVarFloat(playerid, "druglvls");
Reply
#3

Show the definition of "High"

[This forum requires that you wait 120 seconds between posts. Please try again in 64 seconds.] stfu

EDIT: OMG I'm tired! Hahaha, epic fail by me..
Reply
#4

Quote:
Originally Posted by Vince
View Post
Switch the two. You want to assign a value to high, not the the other way round.
pawn Code:
High = GetPVarFloat(playerid, "druglvls");
ahh stupid ass me, Thanks man.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)