Random Skins + Timer
#5

Two reasons most likely, first of all this

pawn Код:
new randomskins[4] = { // Not sure why you added an extra cell, it's only storing an integer
   29,
   47,
   48,
   285
};
And this

pawn Код:
GivePlayerWeapon(playerid, 24, 99999);
                            GivePlayerWeapon(playerid, 3, 0);
                            GivePlayerWeapon(playerid, 41, 99999);
                            GivePlayerWeapon(playerid, 31, 99999);
                            CopOnDuty[playerid] = 1;
                            SetPlayerSkin(playerid, randa);
                            format(string, sizeof(string), "[LSPD:] %s is now an on duty police officer.",GetPlayerNameEx(playerid));
                            SendFactionTypeMessage(1, COLOR_LSPD, string);
                            return 1;
Is missing the random code, unless you just left it out of the snippet.

There should be a

pawn Код:
randa = random(sizeof(randomskins));
In there.
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: 2 Guest(s)