buggy stock, please help
#13

2 closed brackets are missing - the mistake is here:
Code:
CMD:duty(playerid, params[])
{
    new string[128], playern[MAX_PLAYER_NAME], str[128];
    new factid = PlayerInfo[playerid][pMember];
    GetPlayerName(playerid, playern, MAX_PLAYER_NAME);
    if (factid == 0 || factid > 5)
    {
        SendClientMessage(playerid, -1, "Factiunea ta nu dispune de aceasta comanda / nu faci parte dintr-o factiune!");
        return 1;
    }
    else if (factid == 1)
    {
        SendClientMessage(playerid, -1, "troll");
    }
    else if (factid == 2)
    {
        if (IsPlayerInRangeOfPoint(playerid, 50.00, 1171.0372, -1305.8285, -44.0648))
        {
            if (PlayerInfo[playerid][pDuty] == 0)
            {
                PlayerInfo[playerid][pDuty] = 1;
                format(str, sizeof(str), "{f07a7a}HQ: %s %s este acum disponibil!", GetEMSRank(playerid), playern);
                SendFactionMessage(-1, 2, str);
                format(string, sizeof(string), "* %s isi ia echipamentul din dulap.", GetPlayerNameEx(playerid));
                ProxDetector(20.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
            }
            else if (PlayerInfo[playerid][pDuty] == 1)
            {
                PlayerInfo[playerid][pDuty] = 0;
                format(str, sizeof(str), "{f07a7a}HQ: %s %s este acum indisponibil!", GetEMSRank(playerid), playern);
                SendFactionMessage(-1, 2, str);
                format(string, sizeof(string), "* %s isi lasa echipamentul din dulap.", GetPlayerNameEx(playerid));
                ProxDetector(5.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
            }
        }
    }
    else if (factid == 4)
    {
        if (IsPlayerInRangeOfPoint(playerid, 10.00, 256.0068, 1778.0643, 701.0859))
        {
            if (PlayerInfo[playerid][pDuty])
                return 1;
        }
        CMD: repair(playerid, params[])
        {
            if (PlayerInfo[playerid][pMember] != 5) return SCM(playerid, -1, "Nu esti in LSA.");
            if (!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, "Nu esti intr-o masina.");
            new vehicleid = GetPlayerVehicleID(playerid);
            RepairVehicle(vehicleid);
            return 1;
        }
Scroll down to see the marked (in red) code.
Reply


Messages In This Thread
buggy stock, please help - by ImTouchk - 14.12.2016, 08:23
Re: buggy stock, please help - by iLearner - 14.12.2016, 08:28
Re: buggy stock, please help - by ImTouchk - 14.12.2016, 08:30
Re: buggy stock, please help - by iLearner - 14.12.2016, 08:33
Re: buggy stock, please help - by ImTouchk - 14.12.2016, 08:35
Re: buggy stock, please help - by iLearner - 14.12.2016, 08:35
Re: buggy stock, please help - by ImTouchk - 14.12.2016, 08:37
Re: buggy stock, please help - by iLearner - 14.12.2016, 08:57
Re: buggy stock, please help - by Airblog - 14.12.2016, 11:18
Re: buggy stock, please help - by Logic_ - 14.12.2016, 11:29
Re: buggy stock, please help - by ImTouchk - 14.12.2016, 16:15
Re: buggy stock, please help - by ImTouchk - 17.12.2016, 18:51
Re: buggy stock, please help - by Konstantinos - 17.12.2016, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)