24.07.2015, 10:39
@Fancy:
That doesn't work.
In your code skinid is always 0.
@GabiXx:
Use sscanf.
https://sampforum.blast.hk/showthread.php?tid=570927
If you use another command-processor you can change this.
- Mencent
That doesn't work.
In your code skinid is always 0.
@GabiXx:
Use sscanf.
https://sampforum.blast.hk/showthread.php?tid=570927
PHP код:
CMD:skin(playerid,params[])
{
new skinid;
if(sscanf(params,"i",skinid))return SendClientMessage(playerid,-1,"/skin [ID]");
if(skinid < 0 || skinid > 311)return SendClientMessage(playerid,-1,"Invalid SkinID");
SetPlayerSkin(playerid,skinid);
return 1;
}
- Mencent