18.03.2009, 01:30
D:\script.PWN(8577) : error 017: undefined symbol "dcmd_setskin"
D:\script.PWN(8580) : error 017: undefined symbol "dcmd_setskin"
D:\script.PWN(8581) : error 017: undefined symbol "params"
D:\script.PWN(8583) : error 017: undefined symbol "IsInvalidSkin"
These are the errors I got
I added the stock at the end also...and this is my script.
D:\script.PWN(8580) : error 017: undefined symbol "dcmd_setskin"
D:\script.PWN(8581) : error 017: undefined symbol "params"
D:\script.PWN(8583) : error 017: undefined symbol "IsInvalidSkin"
These are the errors I got
I added the stock at the end also...and this is my script.
pawn Код:
dcmd(setskin,7,cmdtext);
dcmd_setskin(playerid,params[])
{
new player, skin;
dcmd(setskin,7,cmdtext);
if(sscanf(params,"dd",player,skin)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setskin [playerid] [skinid]");
if(!IsPlayerConnected(player)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Player ID.");
if(IsInvalidSkin(skin)) return SendClientMessage(playerid, COLOR_GREY, "* Invalid Skin ID");
SetPlayerSkin(player, skin);
SendClientMessage(player, COLOR_WHITE, "An Admin has changed your skin.");
return 1;
}