SA-MP Forums Archive
[SOLVED]Quick thing about GetPlayerWantedLevel - 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: [SOLVED]Quick thing about GetPlayerWantedLevel (/showthread.php?tid=156723)



[SOLVED]Quick thing about GetPlayerWantedLevel - BP13 - 23.06.2010

pawn Код:
if(GetPlayerWantedLevel(playerid) == > 5);
              {
                SetPlayerColor(playerid,COLOR_ORANGE);
            }

Код:
C:\Users\Braeden\Desktop\SAMP Server\gamemodes\SU.pwn(16509) : error 029: invalid expression, assumed zero
C:\Users\Braeden\Desktop\SAMP Server\gamemodes\SU.pwn(16509) : warning 215: expression has no effect
C:\Users\Braeden\Desktop\SAMP Server\gamemodes\SU.pwn(16509) : error 001: expected token: ";", but found ")"
C:\Users\Braeden\Desktop\SAMP Server\gamemodes\SU.pwn(16509) : error 029: invalid expression, assumed zero
C:\Users\Braeden\Desktop\SAMP Server\gamemodes\SU.pwn(16509) : fatal error 107: too many error messages on one line
Also how hilarious the error is keep it to yourself lol.



Re: Quick thing about GetPlayerWantedLevel - bigcomfycouch - 23.06.2010

Код:
if(GetPlayerWantedLevel(playerid) >= 5)
{
	SetPlayerColor(playerid, COLOR_ORANGE);
}



Re: Quick thing about GetPlayerWantedLevel - TouR - 23.06.2010

try this

Код:
 if(GetPlayerWantedLevel(playerid) >= 5);
  {
    SetPlayerColor(playerid,COLOR_ORANGE);
   	}



Re: Quick thing about GetPlayerWantedLevel - BP13 - 23.06.2010

That means larger or equal to. I don't get why I cant just do greater than (also the one I posted was a mear attempt to fix the error. I did try just > but it gave errors. Regardless the error is fixed thank you.


Re: Quick thing about GetPlayerWantedLevel - bigcomfycouch - 23.06.2010

you can use just >. you had a semicolon on the end of the if statement which is why you had an error to start with.


Re: Quick thing about GetPlayerWantedLevel - bajskorv123 - 23.06.2010

pawn Код:
if(GetPlayerWantedLevel(playerid) > 5) //Greater than 5, not equal to
{
    SetPlayerColor(playerid, COLOR_ORANGE);
}