TDM Class Choosing Bug
#1

Hello. I'm trying to fix a bug in our TDM Script.

Here's the code:

pawn Код:
if(PRESSED(KEY_JUMP)) // LSHIFT
    {
        if(IsPlayerChoosingClass[playerid] == 1)
        {
            if(ClassChoosingStep[playerid] == 0) // ASSAULT
            {
                gClass[playerid] = ASSAULT;
            }
            if(ClassChoosingStep[playerid] == 1) // MEDIC
            {
                if(Rank(playerid) >= 2) return SendClientMessage(playerid, C_WHITE, "Your rank is not high enough!");
                gClass[playerid] = MEDIC;
            }
            if(ClassChoosingStep[playerid] == 2) // ANTI-TANK
            {
                if(Rank(playerid) >= 3) return SendClientMessage(playerid, C_WHITE, "Your rank is not high enough!");
                gClass[playerid] = ANTI-TANK;
            }
            if(ClassChoosingStep[playerid] == 3) // ENGINEER
            {
                if(Rank(playerid) >= 4) return SendClientMessage(playerid, C_WHITE, "Your rank is not high enough!");
                gClass[playerid] = ENGINEER;
            }
            if(ClassChoosingStep[playerid] == 4) // AIRFORCE
            {
                if(Rank(playerid) >= 5) return SendClientMessage(playerid, C_WHITE, "Your rank is not high enough!");
                gClass[playerid] = AIRFORCE;
            }
            if(ClassChoosingStep[playerid] == 5) // SPECICAL-OPS
            {
                if(Rank(playerid) >= 6) return SendClientMessage(playerid, C_WHITE, "Your rank is not high enough!");
                gClass[playerid] = SPEC-OPS;
            }
Now once you start reaching Rank 4 or higher, it won't let you choose anything lower, except Assault.
I'd like some help in fixing this.
Reply


Messages In This Thread
TDM Class Choosing Bug - by DJ_Shocker - 17.06.2013, 23:17
Re: TDM Class Choosing Bug - by Kirollos - 17.06.2013, 23:24
Re: TDM Class Choosing Bug - by feartonyb - 17.06.2013, 23:35
Re: TDM Class Choosing Bug - by DJ_Shocker - 17.06.2013, 23:44
Respuesta: TDM Class Choosing Bug - by Strier - 17.06.2013, 23:45
AW: TDM Class Choosing Bug - by BigETI - 18.06.2013, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)