SA-MP Forums Archive
WTF are those errors???? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: WTF are those errors???? (/showthread.php?tid=91184)



WTF are those errors???? - nuriel8833 - 13.08.2009

Im trying to make a command to turn on/off the Speed O Meters
and i have 4 errors+2 warnings:
pawn Код:
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\SpeedOMeters\speedo3.pwn(409) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\SpeedOMeters\speedo3.pwn(409) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\SpeedOMeters\speedo3.pwn(409) : error 022: must be lvalue (non-constant)
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\SpeedOMeters\speedo3.pwn(409) : error 022: must be lvalue (non-constant)
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\SpeedOMeters\speedo3.pwn(409) : error 022: must be lvalue (non-constant)
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\SpeedOMeters\speedo3.pwn(409) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
the line:
pawn Код:
if(TextDrawsShown[playerid] = false && VHSCreated[playerid] = false && LightRedHealthCreated[playerid] = false && LightYellowSpeedCreated[playerid] = false)
      {
how to fix that??


Re: WTF are those errors???? - dice7 - 13.08.2009

pawn Код:
if(TextDrawsShown[playerid] == false && VHSCreated[playerid] == false && LightRedHealthCreated[playerid] == false && LightYellowSpeedCreated[playerid] == false)



Re: WTF are those errors???? - nuriel8833 - 13.08.2009

what did you change


Re: WTF are those errors???? - SpiderPork - 13.08.2009

He added another '=' next to the one you had.
Remember: You have to use two '=' in if, and 1 when you're setting a value.


Re: WTF are those errors???? - nuriel8833 - 13.08.2009

ohhh tanks it works tanks a lot!!!!
lock please