robbank
#1

pawn Код:
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28400) : error 017: undefined symbol "TimeAfterBankJob"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28405) : error 017: undefined symbol "TIME_BETWEEN_BANKJOBS"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28411) : error 017: undefined symbol "BankJobPlayer"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28418) : error 017: undefined symbol "BankJobPlayer"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28422) : error 017: undefined symbol "BankJobTime"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28448) : error 017: undefined symbol "BANK_JOB_TIME"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28467) : error 017: undefined symbol "BankJobTime"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28467) : error 017: undefined symbol "BANK_JOB_TIME"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28467) : warning 215: expression has no effect
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28468) : error 017: undefined symbol "BankJobPlayer"
C:\Documents and Settings\docks\Desktop\SSRP\gamemodes\IRP.pwn(28468) : warning 215: expression has no effect
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.
Code

pawn Код:
CMD:robbank(playerid, params[])

{
    if(PlayerInfo[playerid][pLevel] < 3)

    {
        SendClientMessage(playerid, COLOR_GREY, "   You must be a level 3 or higher to be able to rob the bank.");
        return 1;

    }
    if(IsACop(playerid))

    {
        SendClientMessage(playerid, COLOR_GREY, "   Law Enforcement Officials cannot rob the bank.");
        return 1;

    }
    if(!IsPlayerInRangeOfPoint(playerid, 8755,-1.4945,26.7422,11.3281))

    {
        SendClientMessage(playerid, COLOR_GREY, "   You are not at the bank safe.");
        return 1;

    }
    if(TimeAfterBankJob < TIME_BETWEEN_BANKJOBS)

    {
        new bjt;
        new string[128];
        bjt = TIME_BETWEEN_BANKJOBS - TimeAfterBankJob;
        format(string, sizeof(string), "   You must wait %d hours before making the next bank robbery attempt.", bjt);
        SendClientMessage(playerid, COLOR_GREY, string);
        return 1;

    }
    if(BankJobPlayer < 999 && BankJobPlayer != playerid)

    {
        SendClientMessage(playerid, COLOR_GREY, "   Someone is already robbing the bank.");
        return 1;

    }
    if(BankJobPlayer == playerid)

    {
        new string[128];
        format(string, 256, "   You're already robbing the bank! %d minutes left.", BankJobTime / 2);
        SendClientMessage(playerid, COLOR_GREY, string);
        return 1;

    }
    new Cops = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)

    {
        if(IsACop(i))

        {
            Cops += 1;

        }

    }
    if(!(Cops >= 0))

    {
        SendClientMessage(playerid,COLOR_GREY,"   There must be at least 6 Law Enforcement Officials online.");
        return 1;

    }
    new string[128];
    new giveplayerid;
    format(string, 256, "You have started the robbery, you must stay inside the bank for %d minutes.", BANK_JOB_TIME);
    SetPlayerColor(playerid, COLOR_TWRED);
    SetPlayerToTeamColor(playerid);
    SendClientMessage(playerid, COLOR_WHITE, string);
    if(PlayerInfo[MAX_PLAYERS][pWantedLevel] <= 1)

    {
        WantedPoints[giveplayerid] += 6;

    }
    else if(PlayerInfo[MAX_PLAYERS][pWantedLevel] >= 2)

    {
        WantedPoints[giveplayerid] += 6;

    }
    SetPlayerCriminal(playerid, 999, "Bank Robbery");
    format(string, 256, "City Alert: The Mulholland Bank is being robbed!");
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    BankJobTime = BANK_JOB_TIME;
    BankJobPlayer = playerid;
    return 1;

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)