Big problem with my /skin [ID] script
#1

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;
    }
Now theres no errors/warnings

but theres a big problem ingame

If you type /skin and a ID over 400 It crashes my game?

Hope you can help thanks.
Reply


Messages In This Thread
Big problem with my /skin [ID] script - by Jay. - 23.07.2010, 19:56
Re: Big problem with my /skin [ID] script - by Jay. - 23.07.2010, 19:59
Re: Big problem with my /skin [ID] script - by Jay. - 23.07.2010, 20:05
Re: Big problem with my /skin [ID] script - by Jay. - 23.07.2010, 20:12
Re: Big problem with my /skin [ID] script - by FUNExtreme - 23.07.2010, 20:13
Re: Big problem with my /skin [ID] script - by TheKingOfSamp - 23.07.2010, 20:19
Re: Big problem with my /skin [ID] script - by Jay. - 23.07.2010, 20:20
Re: Big problem with my /skin [ID] script - by [DK]JaloNik - 23.07.2010, 20:22
Re: Big problem with my /skin [ID] script - by FUNExtreme - 23.07.2010, 20:22
Re: Big problem with my /skin [ID] script - by Jay. - 23.07.2010, 20:24

Forum Jump:


Users browsing this thread: 4 Guest(s)