26.09.2013, 13:35
Quote:
C:\Users\PB\Desktop\LYLRPHZ\gamemodes\LYL11.pwn(34 632) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |
pawn Код:
CMD:govduty(playerid, params[]) {
new string [128];
if(PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
if(IsPlayerInRangeOfPoint(playerid,4.0,352.21, 173.43, 1025.79))
{
if(PlayerInfo[playerid][pDuty]==0)
{
format(string, sizeof(string), "* Staff %s takes a badge and a gun from their locker.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerColor(playerid, TEAM_GOV_COLOR);
SetPlayerHealth(playerid, 100);
SetPlayerArmourEx(playerid, 100);
GivePlayerValidWeapon(playerid, 24, 99999);
GivePlayerValidWeapon(playerid, 29, 99999);
GivePlayerValidWeapon(playerid, 27, 99999);
GivePlayerValidWeapon(playerid, 31, 99999);
GivePlayerValidWeapon(playerid, 34, 99999);
OnDuty[playerid] = 1;
PlayerInfo[playerid][pDuty] = 1;
//ShowPlayerDialogEx(playerid, DUTY_OPTIONS, DIALOG_STYLE_LIST, "Duty Options","Public\nUndercover", "Select", "Cancel");
}
else if(PlayerInfo[playerid][pDuty]==1)
{
format(string, sizeof(string), "* Staff %s places their badge and gun in their locker.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerColor(playerid, TEAM_HIT_COLOR);
OnDuty[playerid] = 0;
PlayerInfo[playerid][pDuty] = 0;
}
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not near you Locker.");
}
}
return 1; //HERE'S THE ERROR
}