/robbank system help +rep
#1

I got This error in my Robbank System

Quote:

C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88584) : warning 217: loose indentation
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88593) : warning 217: loose indentation
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88635) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88637) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88639) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88642) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88644) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88647) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88649) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88652) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88657) : error 021: symbol already defined: "GivePlayerMoney"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88663) : error 010: invalid function or declaration
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88667) : warning 203: symbol is never used: "alreadyrobbed"
C:\Users\Harold\Desktop\tmp_fm_LAsRPUPDATED\gamemo des\tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn(88667) : warning 203: symbol is never used: "robbing"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Errors.

Also this is the Code
Quote:

new robbing[MAX_PLAYERS];
new alreadyrobbed[MAX_PLAYERS];





if(strcmp(cmd, "/robbank", true) == 0)
{
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, 15.0, 2394.35,-1593.94,785.62))//--Change those X Y Z
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole 1 Million Dollar - Stay low From Cops for few");
robbing[playerid] = 1;
LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
GivePlayerMoney(playerid, 1000000);
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
SendClientMessageToAll(COLOR_NICEGREEN, " Los Santos Local Bank Trust has Been Broken.");
SendClientMessageToAll(COLOR_NICEGREEN, " The Bank is Currentley getting Robbed. ");
SendClientMessageToAll(COLOR_NICEGREEN, " We will report more once we get more information");
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
return 1;
}
}

+5 rep for my friends if you helped to fix this robbank sytem
Reply
#2

at the end delete the }
Try with this
new robbing[MAX_PLAYERS];
new alreadyrobbed[MAX_PLAYERS];





if(strcmp(cmd, "/robbank", true) == 0)
{
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, 15.0, 2394.35,-1593.94,785.62))//--Change those X Y Z
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole 1 Million Dollar - Stay low From Cops for few");
robbing[playerid] = 1;
LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
GivePlayerMoney(playerid, 1000000);
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
SendClientMessageToAll(COLOR_NICEGREEN, " Los Santos Local Bank Trust has Been Broken.");
SendClientMessageToAll(COLOR_NICEGREEN, " The Bank is Currentley getting Robbed. ");
SendClientMessageToAll(COLOR_NICEGREEN, " We will report more once we get more information");
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
return 1;
}
Reply
#3

here and use [PAWN][/ PAWN] tags its easy to read

pawn Код:
if(strcmp(cmd, "/robbank", true) == 0)
{
    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, 15.0, 2394.35,-1593.94,785.62))//--Change those X Y Z
        {
            SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole 1 Million Dollar - Stay low From Cops for few");
            robbing[playerid] = 1;
            LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
            GivePlayerMoney(playerid, 1000000);
            SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
            SendClientMessageToAll(COLOR_NICEGREEN, " Los Santos Local Bank Trust has Been Broken.");
            SendClientMessageToAll(COLOR_NICEGREEN, " The Bank is Currentley getting Robbed. ");
            SendClientMessageToAll(COLOR_NICEGREEN, " We will report more once we get more information");
            SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
        }
    }
    return 1;
}
Reply
#4

Quote:

tmp_fm_tmp_fm_tmp_fm_NG-RP.pwn

So your using NGRP?
Reply
#5

Quote:
Originally Posted by Emil123
Посмотреть сообщение
at the end delete the }
Try with this
new robbing[MAX_PLAYERS];
new alreadyrobbed[MAX_PLAYERS];





if(strcmp(cmd, "/robbank", true) == 0)
{
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, 15.0, 2394.35,-1593.94,785.62))//--Change those X Y Z
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole 1 Million Dollar - Stay low From Cops for few");
robbing[playerid] = 1;
LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
GivePlayerMoney(playerid, 1000000);
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
SendClientMessageToAll(COLOR_NICEGREEN, " Los Santos Local Bank Trust has Been Broken.");
SendClientMessageToAll(COLOR_NICEGREEN, " The Bank is Currentley getting Robbed. ");
SendClientMessageToAll(COLOR_NICEGREEN, " We will report more once we get more information");
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
return 1;
}
Still same error >.< Not working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)