New SAMP Skins?
#5

Quote:
Originally Posted by Patrik356b
Посмотреть сообщение
If you remove "return" the if statement should be like
Код:
if(skinid < 0 || skinid > 311) 
{ 
    SendClientMessage(playerid, -1, "Don't go lower than 0, or higher than 311");
}
else
{
    SetPlayerSkin(playerid, skinid);
}
Better to do this:
Код:
if(skinid < 0 || skinid > 311) return SendClientMessage(playerid, -1, "Don't go lower than 0, or higher than 311");
SetPlayerSkin(playerid, skinid);

// Just two lines :D
Reply


Messages In This Thread
New SAMP Skins? - by DevinPatino - 03.05.2015, 20:44
Re: New SAMP Skins? - by Dredd - 03.05.2015, 21:48
Re: New SAMP Skins? - by JaydenJason - 03.05.2015, 22:08
Re: New SAMP Skins? - by Patrik356b - 05.05.2015, 07:41
Re: New SAMP Skins? - by J4Rr3x - 05.05.2015, 10:58
Re: New SAMP Skins? - by ZiGGi - 05.05.2015, 15:27
Re: New SAMP Skins? - by Patrik356b - 06.05.2015, 00:23
Re: New SAMP Skins? - by Puppy - 06.05.2015, 00:28
Re: New SAMP Skins? - by Patrik356b - 06.05.2015, 23:26
Re: New SAMP Skins? - by HeLiOn_PrImE - 07.05.2015, 01:47

Forum Jump:


Users browsing this thread: 2 Guest(s)