About robbank Sytem +4REP
#1

Hello Im here cause My robbank system is getting some error if i compiled it can you check my code guys

Quote:

new UseCmd[MAX_PLAYERS];

if(strcmp(cmdtext, "/robbank", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(UseCmd[playerid]==1) return SendClientMessage(playerid,-1,"You need to wait 1hr to use this command!");//check if the player has typed the cmd
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid, COLOR_GREY, " Morate da ste Rank 5 za da ja ograbite bankata !");
return 1;
}
if(RobStart2[playerid] == 1)
{
if (!PlayerToPoint(30, playerid, -482.10000610,-183.69999695,972.29998779))
{
SendClientMessage(playerid, COLOR_GREY, "You aren't near a bank!");
return 1;
}
if(BankRobbedLast=1 > gettime()) return SendClientMessage(playerid, 0xFF0000FF, "The bank was already robbed.");

GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid,COLOR_WHITE,"||| VESTI NA DENOT |||");
format(string, sizeof(string), "BANK ALARM: %s go zapocna grabezot BANK ALARM !!!.", sendername);
SendTeamMessage(1, COLOR_YELLOW, string);
SendTeamMessage(2, COLOR_YELLOW, string);
SendTeamMessage(3, COLOR_YELLOW, string);
SendTeamMessage(1, COLOR_YELLOW, string);
SendTeamMessage(2, COLOR_YELLOW, string);
SendTeamMessage(3, COLOR_YELLOW, string);
SendTeamMessage(1, COLOR_YELLOW, string);
SendTeamMessage(2, COLOR_YELLOW, string);
SendTeamMessage(3, COLOR_YELLOW, string);
SendClientMessage(playerid,COLOR_WHITE,"** Please wait 5 min while the money are transfered");
SetTimerEx("RobDone",60000, false, "i", playerid);
SetTimerEx("RobBankCmd", 3600000, false, "i", playerid);//1hr timer
UseCmd[playerid]=1;//make sure the player will not use the cmd for 1hr
BankRobbedLast = gettime();
}
else
{
SendClientMessage(playerid, COLOR_RED, "* You can't do that ! ");
}
}
}

forward RobDone(playerid);
public RobDone(playerid){
SendClientMessage(playerid,COLOR_WHITE,"Robbery done");
GivePlayerMoney(playerid,1000000);//change it to what ever you want !
return 1;
}
//at the bottom
forward RobBankCmd(playerid);
public RobBankCmd(playerid){
UseCmd[playerid]=0;
return 1;
}




And here is the errors


Quote:

C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(57256) : warning 217: loose indentation
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(60327) : warning 217: loose indentation
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88696) : warning 217: loose indentation
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88703) : warning 217: loose indentation
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88712) : warning 217: loose indentation
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88749) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88751) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88753) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88754) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88757) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88759) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88761) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88764) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88766) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(8876 : error 021: symbol already defined: "GetPlayerName"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88771) : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88772) : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88773) : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88774) : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88775) : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88776) : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88777) : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(8877 : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88779) : error 021: symbol already defined: "SendTeamMessage"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88786) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


20 Errors.

Reply


Messages In This Thread
About robbank Sytem +4REP - by ChrisRedfield00 - 03.05.2012, 02:56
Re: About robbank Sytem +4REP - by JaKe Elite - 03.05.2012, 02:57
Re: About robbank Sytem +4REP - by ToiletDuck - 03.05.2012, 03:01
Re : About robbank Sytem +4REP - by ChrisRedfield00 - 03.05.2012, 06:24
Re: About robbank Sytem +4REP - by JaKe Elite - 03.05.2012, 06:27
Re : About robbank Sytem +4REP - by ChrisRedfield00 - 03.05.2012, 08:22

Forum Jump:


Users browsing this thread: 1 Guest(s)