Random Skins + Timer
#2

There's no need for enum there, just an array with values inserted
pawn Код:
new Skins[4] = {
    skin1,
    skin2,
    skin3
};
Then you would select a random cell in the Skins array and use the integer stored there for the skin ID.

pawn Код:
SetPlayerSkin(playerid, Skins[random(sizeof(Skins)]);
Reply


Messages In This Thread
Random Skins + Timer - by Ritchie999 - 16.10.2010, 23:02
Re: Random Skins + Timer - by JaTochNietDan - 16.10.2010, 23:07
Re: Random Skins + Timer - by GaGlets(R) - 16.10.2010, 23:08
Re: Random Skins + Timer - by Ritchie999 - 16.10.2010, 23:24
Re: Random Skins + Timer - by JaTochNietDan - 16.10.2010, 23:28
Re: Random Skins + Timer - by mmrk - 16.10.2010, 23:29
Re: Random Skins + Timer - by Ritchie999 - 16.10.2010, 23:33
Re: Random Skins + Timer - by JaTochNietDan - 16.10.2010, 23:41
Re: Random Skins + Timer - by Ritchie999 - 16.10.2010, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)