[Tutorial] /saveskin & /delskin
#6

Nice Job but skin 74 is an invalid skin id.
Code:
CMD:skin(playerid, params[])
{
    new skinid;
    if(sscanf(params, "d", skinid)) 
        return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /skin (skinid)"); 

    if(skinid > 299 || skinid < 0) 
        return SendClientMessage(playerid, 0xFF0000FF, "Invalid Skin ID!");
    else if(skinid == 74)
    return SendClientMessage(playerid, 0xFF0000FF, "Invalid Skin ID!"); //Added Line By Me.

    SetPlayerSkin(playerid, skinid); 

    Player_HasSkin[playerid] = true;
    Player_Skin[playerid] = skinid;
    return 1;
}
REP+
Reply


Messages In This Thread
/saveskin & /delskin - by Ghazal - 22.05.2014, 16:48
Re: /saveskin & /delskin - by Youssef214 - 22.05.2014, 16:54
Re: /saveskin & /delskin - by Ghazal - 22.05.2014, 16:57
Re: /saveskin & /delskin - by iAnonymous - 22.05.2014, 18:26
Re: /saveskin & /delskin - by Ghazal - 22.05.2014, 19:44
Re: /saveskin & /delskin - by Rittik - 23.05.2014, 04:45
Re: /saveskin & /delskin - by Ghazal - 23.05.2014, 18:57
Re: /saveskin & /delskin - by Alex Magaсa - 23.05.2014, 19:02
Re: /saveskin & /delskin - by jihadmeneer - 23.05.2014, 19:05
Re: /saveskin & /delskin - by Ghazal - 23.05.2014, 21:14
Re: /saveskin & /delskin - by NaClchemistryK - 24.05.2014, 08:07
Re: /saveskin & /delskin - by Ghazal - 24.05.2014, 13:01
Re: /saveskin & /delskin - by Dangjai - 26.05.2014, 21:51
Re: /saveskin & /delskin - by Ghazal - 27.05.2014, 08:49

Forum Jump:


Users browsing this thread: 2 Guest(s)