GetPlayerScore - SetPlayerColor
#1

There is something wrong with this coding but I cant seem to see what, eg. when the player's score is 1001 it still shows the first color for 0-500, can someone help me please?

PHP код:
public OnPlayerUpdate(playerid)
{
    if((
GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 500))
    {
    
SetPlayerColor(playeridCOLOR_YELLOW);
    }
    else if((
GetPlayerScore(playerid) > 500) && (GetPlayerScore(playerid) <= 1000))
    {
    
SetPlayerColor(playeridCOLOR_ORANGE);
    }
    else if((
GetPlayerScore(playerid) > 1000) && (GetPlayerScore(playerid) <= 5000))
    {
    
SetPlayerColor(playeridCOLOR_RED);
    }
    else if((
GetPlayerScore(playerid) > 10000) && (GetPlayerScore(playerid) <= 15000))
    {
    
SetPlayerColor(playeridCOLOR_PURPLE);
    }
     else if((
GetPlayerScore(playerid) > 15000) && (GetPlayerScore(playerid) <= 200000))
    {
    
SetPlayerColor(playeridCOLOR_COOL);
    }
    return 
1;

Reply


Messages In This Thread
GetPlayerScore - SetPlayerColor - by Melktert - 14.04.2017, 08:25
Re: GetPlayerScore - SetPlayerColor - by coool - 14.04.2017, 09:52
Re: GetPlayerScore - SetPlayerColor - by Bolex_ - 14.04.2017, 11:28
Re: GetPlayerScore - SetPlayerColor - by LEOTorres - 14.04.2017, 11:42
Re: GetPlayerScore - SetPlayerColor - by lackmail - 14.04.2017, 11:46
Re: GetPlayerScore - SetPlayerColor - by Vince - 14.04.2017, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)