11.12.2011, 14:51
Hey,
you should use sccanf
Include all the sccanf stuff and then use this code:
you should use sccanf
Include all the sccanf stuff and then use this code:
pawn Код:
CMD:skin(playerid,params[])
{
new skin;
if(sscanf(params,"i",skin)) SendClientMessage(playerid,0xFFFF00AA,"USAGE: /skin [skin id]");
if(skin > 299 || skin < 0) SendClientMessage(playerid,0xFFFF00AA,"Invalid Skin ID!");
else return SetPlayerSkin(playerid,skin);
return 1;
}