Problem /skin
#1

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 .
Reply
#2

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.
Reply
#3

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");
Reply
#4

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

Thanks All
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)