if(strcmp(cmd, "/robbank", true) == 0) { if(PlayerInfo[playerid][pLocal] == 103) { if(PlayerInfo[playerid][pRobTime] == 1) { SendClientMessage(playerid, COLOR_YELLOW, "You cannot rob the Bank more then once per day(1 Hour)!"); } if(PlayerInfo[playerid][pRobTime] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid, 0xFF0000FF, " You Have Robbed The Bank "); CP[playerid] = 2; format(string, sizeof(string), "** HQ: The Bank in Los Angeles has been robbed by %s!!. **", sendername); SendRadioMessage(1, TEAM_BLUE_COLOR, string); SendRadioMessage(2, TEAM_BLUE_COLOR, string); SendRadioMessage(3, TEAM_BLUE_COLOR, string); WantedPoints[playerid] +=4; SetPlayerCriminal(playerid,255, "Robbing the Bank!"); format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the Bank.", sendername); SendClientMessage(playerid, COLOR_YELLOW, "You have been seen on the security cameras! Run away!"); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } return 1; }
forward EnableBank(playerid);
if(strcmp(cmd, "/robbank", true) == 0)
{
if(PlayerInfo[playerid][pLocal] == 103)
{
if(PlayerInfo[playerid][pRobTime] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "You cannot rob the Bank more then once per day(1 Hour)!");
}
if(PlayerInfo[playerid][pRobTime] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, 0xFF0000FF, " You Have Robbed The Bank ");
CP[playerid] = 2;
format(string, sizeof(string), "** HQ: The Bank in Los Angeles has been robbed by %s!!. **", sendername);
SendRadioMessage(1, TEAM_BLUE_COLOR, string);
SendRadioMessage(2, TEAM_BLUE_COLOR, string);
SendRadioMessage(3, TEAM_BLUE_COLOR, string);
WantedPoints[playerid] +=4; SetPlayerCriminal(playerid,255, "Robbing the Bank!");
format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the Bank.", sendername);
SendClientMessage(playerid, COLOR_YELLOW, "You have been seen on the security cameras! Run away!");
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new TimerBankStack = SetTimer("EnableBank", 3600000, 0, "i", playerid);
}
}
return 1;
}
public EnableBank(playerid);
{
PlayerInfo[playerid][pRobTime] == 0
KillTimer(TimerBankStack);
return 1;
}
Originally Posted by [K4L
Jake ]
And anywhere outside of a callback: pawn Код:
|
C:\Users\User\Desktop\MyServer\gamemodes\roleplay.pwn(758) : error 055: start of function body without function header C:\Users\User\Desktop\My Server\gamemodes\roleplay.pwn(761) : error 010: invalid function or declaration
Originally Posted by Hrvo182
Quote:
Код:
C:\Users\User\Desktop\MyServer\gamemodes\roleplay.pwn(758) : error 055: start of function body without function header C:\Users\User\Desktop\My Server\gamemodes\roleplay.pwn(761) : error 010: invalid function or declaration |
public EnableBank(playerid);
{
PlayerInfo[playerid][pRobTime] = 0;
KillTimer(TimerBankStack);
return 1;
}
public EnableBank(playerid) ;<---- { PlayerInfo[playerid][pRobTime] = 0; KillTimer(TimerBankStack); return 1; } |
public EnableBank(playerid) { PlayerInfo[playerid][pRobTime] = 0; KillTimer(TimerBankStack); return 1; } |
Originally Posted by mr.b
Quote:
Quote:
![]() |
C:\Users\User\Desktop\My Server\gamemodes\roleplay.pwn(2236) : error 010: invalid function or declaration C:\Users\User\Desktop\My Server\gamemodes\roleplay.pwn(2240) : error 010: invalid function or declaration
public EnableBank(playerid) ;<---- { PlayerInfo[playerid][pRobTime] = 0; KillTimer(TimerBankStack); return 1; }
public EnableBank(playerid) ;<---- return 1;