[FilterScript] JR's Rank System [SIMPLE]
#8

Quote:
Originally Posted by [MM]Eminem
Посмотреть сообщение
So you just added a brace and it's not messed up anymore?
The indentation is messed up, script is alright tho .
Check his code man -_-.he uses this

pawn Код:
if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 100)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Private!");
    }
    if (GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) <= 200)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Private 2!");
    }
So,when a players score updates,the rank will not be updated because in first case its <= and in next there is >=.so it will not update ur Rank at all.Thats what i changed to this

pawn Код:
if (GetPlayerScore(playerid) > 0 && GetPlayerScore(playerid) <= 100)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Private!");
    }
    if (GetPlayerScore(playerid) > 100 && GetPlayerScore(playerid) <= 200)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Private 2!");
    }
Reply


Messages In This Thread
JR's Rank System [SIMPLE] - by zohartrejx - 24.11.2012, 11:51
AW: JR's Rank System [SIMPLE] - by PasMod - 20.03.2013, 02:08
Re: JR's Rank System [SIMPLE] - by Gamer_007 - 20.03.2013, 02:51
Re: JR's Rank System [SIMPLE] - by DaTa[X] - 20.03.2013, 07:51
Re: JR's Rank System [SIMPLE] - by Gamer_007 - 20.03.2013, 08:20
Re: JR's Rank System [SIMPLE] - by [MM]Eminem - 20.03.2013, 11:36
Re: JR's Rank System [SIMPLE] - by XStormiest - 20.03.2013, 11:59
Re: JR's Rank System [SIMPLE] - by Gamer_007 - 20.03.2013, 12:01
Re: JR's Rank System [SIMPLE] - by [MM]Eminem - 20.03.2013, 12:53
Re: JR's Rank System [SIMPLE] - by S4ba - 20.03.2013, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)