08.05.2010, 17:02
hey guys, me again, im not that good with dcmd, and i get a problem with akill.
the error is:
C:\Program Files (x86)\Rockstar games\Gta San Andreas\dedicated server\filterscripts\PMKadminscript.pwn(342) : error 017: undefined symbol "GetPlayerId"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
yea i used the script from the wiki for akill:
the problem is at new id = (isNumeric(params)) ? strval(params) : GetPlayerId(params);
i tried defining it but i just got more errors.
can someone help me out? thanks and sorry for my noobish xd
the error is:
C:\Program Files (x86)\Rockstar games\Gta San Andreas\dedicated server\filterscripts\PMKadminscript.pwn(342) : error 017: undefined symbol "GetPlayerId"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
yea i used the script from the wiki for akill:
Код:
dcmd_akill(playerid, params[])
{
if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[AKILL])
{
new string[100];
format(string, sizeof(string), "You must be Admin level %d to use that command!", gCommands[AKILL]);
return SendClientMessage(playerid, COLOUR_ORANGE, string);
}
else if(!strlen(params))
return SendClientMessage(playerid, COLOUR_ORANGE, "/akill [id/name]");
else
{
new id = (isNumeric(params)) ? strval(params) : GetPlayerId(params);
if(IsPlayerConnected(id) && id != playerid)
{
SetPlayerHealth(id, 0.0);
new string[150];
format(string, sizeof(string), "You have been admin-killed by an admin");
SendClientMessage(id, COLOUR_ORANGE, string);
format(string, sizeof(string), "You have successfully admin-killed player \'%s\'.", gPlayerInfo[id][PLAYER_NAME]);
return SendClientMessage(playerid, COLOUR_LIGHTBLUE, string);
}
else
return SendClientMessage(playerid, COLOUR_ORANGE, "You can not Akill yourself or a disconnected player.");
}
}
i tried defining it but i just got more errors.
can someone help me out? thanks and sorry for my noobish xd


but sscanf is not defined, how can i do so? i didn't use it yet. thanks