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
#2

One word

Stop using NGRP your server will be in the blacklisted
Reply
#3

Just what Romel said, and i know you Chris RedField you stole our server script
Learn to script Die in Working
Reply
#4

please stop adding some shitty comments cause its not helped there alot of server using ngrp script but still they are no black listed stop scaring the people And to toilet duck i didn`t stole FYI i tried my best to edit some scripts and do some shitty cmd`s into it so Dotn care with you ass i just need to fix this robbank system understood?
Reply
#5

I'm not scaring people i'm just saying the truth, you can use it but kid i warning you all i mentioned above may possibility happened
Reply
#6

i just asked for a help to fix this !!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)