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

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
And btw Your whole code is messy.You need to correct it really..Let me correct it

pawn Код:
if (strcmp("/myrank", cmdtext, true, 10) == 0)
    {
    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!");
    }
    if (GetPlayerScore(playerid) > 200 && GetPlayerScore(playerid) <= 500)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Pilot!");
    }
    if (GetPlayerScore(playerid) > 500 && GetPlayerScore(playerid) <= 1000)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Sergeant!");
    }
    if (GetPlayerScore(playerid) > 1000 && GetPlayerScore(playerid) <= 2000)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Commander!");
    }
    if (GetPlayerScore(playerid) > 2000 && GetPlayerScore(playerid) <= 3000)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Lieutenant!!");
    }
    if (GetPlayerScore(playerid) > 3000 && GetPlayerScore(playerid) <= 4000)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Captain!");
    }
    if (GetPlayerScore(playerid) > 4000 && GetPlayerScore(playerid) <= 5000)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Mayor!");
    }
    if (GetPlayerScore(playerid) > 5000 && GetPlayerScore(playerid) <= 6500)
    {
    SendClientMessage(playerid, COLOR_RED,"You are General!");
    }
    if (GetPlayerScore(playerid) > 6500 && GetPlayerScore(playerid) <= 50000)
    {
    SendClientMessage(playerid, COLOR_RED,"You are Unstopable Chuck Norris!");
    }
    return 1;

    }
    if (strcmp("/ranks", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, COLOR_BLUE, "====All Ranks (By zohartrejx)=====");
    SendClientMessage(playerid, COLOR_RED, "Private 0-100 Score. Private 2 100-200 Score.");
    SendClientMessage(playerid, COLOR_RED, "Pilot 200-500 Score. Sergeant 500-1000 Score.");
    SendClientMessage(playerid, COLOR_RED, "Commander 1000-2000 Score. Lieutenant 2000-3000 Score.");
    SendClientMessage(playerid, COLOR_RED, "Captain 3000-4000 Score. Mayor 4000-5000 Score.");
    SendClientMessage(playerid, COLOR_RED, "General 5000-6500 Score. Chuck Norris 6500-50000 Score.");
    }
    return 1;
    }
So you just added a brace and it's not messed up anymore?
The indentation is messed up, script is alright tho .
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)