06.09.2010, 01:29
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)}
(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)}