30.05.2013, 09:35
im not sure how it works with CMD but with sscanf it should look like this;
Maybe you see what you are doing wrong by seeing this
pawn Code:
dcmd_skin(playerid, params[])
{
new Setto;
if(sscanf(params, "ii",Setto))
{
SetPlayerSkin(playerid, Setto);
new SStr[125];
format(SStr, sizeof(SStr), "Your skin was set to %f.", Setto);
SendClientMessage(playerid,COLOR_ORANGE,SStr);
}
return 1;
}