Bank rob problem
#1

I got that in script-
pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>
#define COLOR_WHITE 0xFFFFFFAA


#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}
forward bankrob(playerid);
forward robbedoff(playerid);
public bankrob(playerid)
{
    SendClientMessage(playerid, COLOR_WHITE, " Your finished robbing the bank, Run now");
    GivePlayerMoney(playerid, 3000000);
    PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+3000000;
    alreadyrobbed[playerid] = 1;
    robbing[playerid] = 0;
    SetTimerEx("robbedoff", 3600000, false, "i", playerid);
    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
    SendClientMessageToAll(COLOR_WHITE, " It looks like the bankrobber got the cash.");
    SendClientMessageToAll(COLOR_WHITE, " The cops is currently waiting outside.");
    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
    return 1;
}
public robbedoff(playerid)
{
    alreadyrobbed[playerid] = 0;
    SendClientMessage(playerid, COLOR_WHITE, " You can now rob the bank again");
    return 1;
}
CMD:robbank(playerid, params[])
{
        if(IsPlayerConnected(playerid))
        {
            if(robbing[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, " You are already robbing the bank, please slow down");
                return 1;
            }
            if(alreadyrobbed[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
                return 1;
               }
            if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2308.8071,-13.2485,26.7422)) // Change X Y Z to the location you want
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are not at the bank !");
                return 1;
            }
                    SendClientMessage(playerid, COLOR_WHITE, " You started to rob the bank, This will take 10 minutes");
                    SetTimerEx("bankrob", 600000, false, "i", playerid);
                    robbing[playerid] = 1;
                    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
                    SendClientMessageToAll(COLOR_WHITE, " The bank is currently getting robbed.");
                    SendClientMessageToAll(COLOR_WHITE, " We are currently waiting for the cops");
                    SendClientMessageToAll(COLOR_WHITE, " We will report more when we get more information");
                    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
                    return 1;
                }
}
public OnFilterScriptExit()
{
    return 1;
}
And here is errors-
pawn Код:
C:\Documents and Settings\asa\Desktop\bank.pwn(25) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\asa\Desktop\bank.pwn(25) : warning 215: expression has no effect
C:\Documents and Settings\asa\Desktop\bank.pwn(25) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\asa\Desktop\bank.pwn(25) : error 029: invalid expression, assumed zero
C:\Documents and Settings\asa\Desktop\bank.pwn(25) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Please help me to fix this FS i really need that cmd
Reply


Messages In This Thread
Bank rob problem - by SampLoverNo123 - 06.03.2012, 08:39
Re: Bank rob problem - by Reklez - 06.03.2012, 08:56
Re: Bank rob problem - by SampLoverNo123 - 06.03.2012, 09:04
Re: Bank rob problem - by Reklez - 06.03.2012, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)