why doesnt this work?
#1

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)}
Reply
#2

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
Reply
#3

thanks man. it works!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)