SA-MP Forums Archive
Problem /skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem /skin (/showthread.php?tid=461810)



Problem /skin - Ramb - 03.09.2013

Hello i have command skin :
PHP код:
COMMAND:skin(playeridparams[])
{
new 
string[128];
new 
skinid;
if(
sscanf(params"d"skinid)) return SendClientMessage(playerid,gris,"Usage : /skin [id]");
SetPlayerSkin(playerid,skinid);
format(stringsizeof(string), "You have set your skin ID to %d"skinid);
SendClientMessage(playerid,grisstring);
GetPlayerSkin(playerid);
if(
skinid == 300)
{
SendClientMessage(playerid,gris,"Non");
}
return 
1;

And i have locked skin id 300 so i used /skin 300 for test and my pc are freeze and my game please help me .


Re: Problem /skin - Isolated - 03.09.2013

Quote:
Originally Posted by SA:MP Wiki
In new versions of SA-MP since 0.3d RC5 you can use more than 284 skins - 299 - thanks to IllidanS4.
You are setting your skin higher then the allowed rate, and in-existing skins.


Re: Problem /skin - Konstantinos - 03.09.2013

pawn Код:
if(sscanf(params, "d", skinid)) return SendClientMessage(playerid,gris,"Usage : /skin [id]");
if(skinid < 0 || skinid > 299 || skinid == 74 ) return SendClientMessage(playerid,gris,"Valid skins: 0-73 and 75-299");



Re: Problem /skin - TonyII - 03.09.2013

pawn Код:
if(skinid >= 300)
{
SendClientMessage(playerid,gris,"Non");
return 1;
}



Re : Problem /skin - Ramb - 03.09.2013

Thanks All