Pawn error
#4

pawn Код:
case 0://pilot
                {
                    gTeam[playerid] = TEAM_CPILOT;
                    SendClientMessage(playerid, COLOR_WHITE, "Welcome to the {FF9900}Civilian Pilot {FFFFFF}role. Type /help to view all commands related.");
                    TogglePlayerControllable(playerid, 1);
                    PlayerSpawned[playerid] = 1;
                    UpdatePlayerColour(playerid);
                    PurelySpawned[playerid] = 1;
                    RespawnPlayer(playerid);
                }
                 case 1://bus driver
                {
                    if(PInfo[playerid][TotalScore] > 25)
                    {
                        gTeam[playerid] = TEAM_NAVI;
                        SendClientMessage(playerid, COLOR_WHITE, "Welcome to the {00FFFF}Bus Driver {FFFFFF}role. Type /help to view all commands related.");
                        TogglePlayerControllable(playerid, 1);
                        PlayerSpawned[playerid] = 1;
                        UpdatePlayerColour(playerid);
                        PurelySpawned[playerid] = 1;
                        RespawnPlayer(playerid);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ERROR, "You need 25+ score to select this role!");
                        ShowRole(playerid);
                    }
                }
                 case 2://military
                {
                    if(PInfo[playerid][TotalScore] > 49)
                    {
                        gTeam[playerid] = TEAM_MILITARY;
                        SendClientMessage(playerid, COLOR_WHITE, "Welcome to the {FF9900}Military Pilot {FFFFFF}role. Type /help to view all commands related.");
                        TogglePlayerControllable(playerid, 1);
                        PlayerSpawned[playerid] = 1;
                        UpdatePlayerColour(playerid);
                        PurelySpawned[playerid] = 1;
                        RespawnPlayer(playerid);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ERROR, "You need 50+ score to select this role!");
                        ShowRole(playerid);
                        return 1;
                    }
                }

                 case 3://Marine
                {
                    if(PInfo[playerid][TotalScore] > 99)
                    {
                        gTeam[playerid] = TEAM_NAVI;
                        SendClientMessage(playerid, COLOR_WHITE, "Welcome to the {00FFFF}Marine {FFFFFF}role. Type /help to view all commands related.");
                        TogglePlayerControllable(playerid, 1);
                        PlayerSpawned[playerid] = 1;
                        UpdatePlayerColour(playerid);
                        PurelySpawned[playerid] = 1;
                        RespawnPlayer(playerid);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ERROR, "You need 100+ score to select this role!");
                        ShowRole(playerid);
                        return 1;
                    }
                }
            }
        }
    }
Reply


Messages In This Thread
Pawn error - by Geeboi_Mehdi - 29.05.2013, 01:11
Re: Pawn error - by Pottus - 29.05.2013, 01:15
Re: Pawn error - by Geeboi_Mehdi - 29.05.2013, 01:19
Re: Pawn error - by IceBilizard - 29.05.2013, 03:37

Forum Jump:


Users browsing this thread: 2 Guest(s)