22.03.2010, 19:56
yea i can see the people around moving but my onplayerupdate just don't work xD example i have a score of 7 but it doesn't upgrade my rank... it stays on 'normal guy' . Why?
heres my onplayerupdate
heres my onplayerupdate
Code:
public OnPlayerUpdate(playerid) { if(GetPlayerScore(playerid) == 5) { SetPlayerRank(playerid, 1); } else if(GetPlayerScore(playerid) == 20) { SetPlayerRank(playerid, 2); } else if(GetPlayerScore(playerid) == 35) { SetPlayerRank(playerid, 3); } else if(GetPlayerScore(playerid) == 50) { SetPlayerRank(playerid, 4); } else if(GetPlayerScore(playerid) == 75) { SetPlayerRank(playerid, 5); } else if(GetPlayerScore(playerid) == 100) { SetPlayerRank(playerid, 6); } else if(GetPlayerScore(playerid) == 150) { SetPlayerRank(playerid, 7); } else if(GetPlayerScore(playerid) == 175) { SetPlayerRank(playerid, 8); } else if(GetPlayerScore(playerid) == 200) { SetPlayerRank(playerid, 9); } else if(GetPlayerScore(playerid) == 250) { SetPlayerRank(playerid, 10); } else if(GetPlayerScore(playerid) == 300) { SetPlayerRank(playerid, 11); } else if(GetPlayerScore(playerid) == 1000) { SetPlayerRank(playerid, 12); } return 1; }