having error! -
Rog - 30.11.2014
error 017: undefined symbol "issuerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
how to fix it?
Re: having error! -
HY - 30.11.2014
Well, you didn't defined "issuerid", please post your code.
Re: having error! -
Rog - 30.11.2014
COMMAND:headshot(playerid, params[]) {
new string[128], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(GetPlayerWeapon(issuerid) != ArmaHeadShot) return SendClientMessage(playerid, -1, "[!] You do not have the gun headshot system!");
switch(ActivarHeadShot[playerid]) {
case false: {
ActivarHeadShot[playerid] = true;
format(string, sizeof(string), "* %s system activate headshot.", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
case true: {
ActivarHeadShot[playerid] = false;
format(string, sizeof(string), "* %s system disables headshot.", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
}
return 1;
}
FilterScript code by OTACON
Re: having error! -
Ryz - 06.12.2014
change this
pawn Код:
if(GetPlayerWeapon(issuerid) != ArmaHeadShot)
to
pawn Код:
if(GetPlayerWeapon(playerid) != ArmaHeadShot)