why doesnt this work? - 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: why doesnt this work? (
/showthread.php?tid=174542)
why doesnt this work? -
Yourfatness - 06.09.2010
my script wont compile with this in it. i get a ton of errors with it. the problem is, i cant figure out what's wrong with it. it looks fine to me.
(by the way this is under OnPlayerUpdate so if it will work somewhere else i will move it)
code:
new wantedlevel = GetPlayerWantedLevel(playerid)
if(wantedlevel =1) {SetPlayerColor(killerid, 0xFFFF00FF)}
if(wantedlevel =2) {SetPlayerColor(killerid, 0xFFCC00FF)}
if(wantedlevel =3) {SetPlayerColor(killerid, 0xFFAA00FF)}
if(wantedlevel =4) {SetPlayerColor(killerid, 0xFF8000FF)}
if(wantedlevel =5) {SetPlayerColor(killerid, 0xFF4000FF)}
if(wantedlevel >=6) {SetPlayerColor(killerid, 0xFF0000FF)}
Re: why doesnt this work? -
willsuckformoney - 06.09.2010
pawn Код:
new wantedlevel = GetPlayerWantedLevel(playerid);
if(wantedlevel == 1) return SetPlayerColor(killerid, 0xFFFF00FF);
if(wantedlevel == 2) return SetPlayerColor(killerid, 0xFFCC00FF);
if(wantedlevel == 3) return SetPlayerColor(killerid, 0xFFAA00FF);
if(wantedlevel == 4) return SetPlayerColor(killerid, 0xFF8000FF);
if(wantedlevel == 5) return SetPlayerColor(killerid, 0xFF4000FF);
if(wantedlevel ==6) return SetPlayerColor(killerid, 0xFF0000FF); //Wanted level won't show higher than 6 so no point of more than 6
Re: why doesnt this work? -
Yourfatness - 06.09.2010
thanks man. it works!