having error!
#1

error 017: undefined symbol "issuerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

how to fix it?
Reply
#2

Well, you didn't defined "issuerid", please post your code.
Reply
#3

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
Reply
#4

change this
pawn Код:
if(GetPlayerWeapon(issuerid) != ArmaHeadShot)
to

pawn Код:
if(GetPlayerWeapon(playerid) != ArmaHeadShot)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)