Problem with PVars
#1

Im having some problems with a "PVar". Here is my code:

pawn Код:
rand == GetPVarInt(strlen(thing), "PlayerMission");
however when i go to compile, i get the following error:

Код:
C:\Users\MyUserNameHere :) \SA-MP Stuff!\filterscripts\newwork.pwn(190) : warning 215: expression has no effect
What is wrong? If you need me to post the whole script let me know

Thanks
Ash
Reply
#2

You have two times =.
So use
pawn Код:
rand = GetPVarInt(strlen(thing), "PlayerMission");
or if you want is at condition use
pawn Код:
if(rand == GetPVarInt(strlen(thing), "PlayerMission")) {...
Reply
#3

Ah, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)