Quote:
Originally Posted by JeaSon
simple just add this line
PHP код:
PlayerInfo[targetid][pSkinID] = skinid;
under
PHP код:
SendClientMessage(playerid, COLOR_WHITE,"~~~~~~~~~~~~~~~~~~~");
here your command
PHP код:
CMD:setskin(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new
targetid,
skinid;
if (!sscanf(params, "ii", targetid, skinid))
{
if (targetid != INVALID_PLAYER_ID)
{
new
message[256];
SetPlayerSkin(targetid, skinid);
SendClientMessage(playerid, COLOR_WHITE, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
format(message, sizeof(message), "Your skin ID was set to '%d' by an Admin!", skinid);
SendClientMessage(targetid, COLOR_ORANGE, message);
SendClientMessage(playerid, COLOR_WHITE, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
PlayerInfo[targetid][pSkinID] = skinid;
}
else SendClientMessage(playerid, COLOR_GREY, "That player is not connected!");
}
else SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /setskin [playerid]");
}
else SendClientMessage(playerid, COLOR_GREY, "You are not a level 1+ Admin!");
return 1;
}
|
Код:
C:\Users\Luke\Desktop\SCRIPT\gamemodes\SBRP.pwn(1118) : error 017: undefined symbol "pSkinID"