23.07.2010, 19:56
pawn Код:
if(!strcmp(cmdtext, "/skin", true, 4))
{
if(cmdtext[5]==0) return SendClientMessage(playerid,COLOR_RED2, "USAGE: /skin [skin id]");
new skin[11];
strmid(skin,cmdtext[5],0,11);
if(!strcmp(skin,"0",true)) return SendClientMessage(playerid,COLOR_RED2, "You have entered an Invaild skin ID");
new skinid = strval(skin);
SetPlayerSkin(playerid, skinid);
SendClientMessage(playerid,COLOR_YELLOW1,"You have changed your skin.");
return 1;
}
but theres a big problem ingame
If you type /skin and a ID over 400 It crashes my game?
Hope you can help thanks.