Juqt a small question about random func
#1

When I compile my script I get this:

Код:
C:\Documents and Settings\Sйbastien\Mes documents\GTA\samp02Xserver.win32\gamemodes\BCL-RP.pwn(3146) : warning 204: symbol is assigned a value that is never used: "RandomFemaleSkin"
C:\Documents and Settings\Sйbastien\Mes documents\GTA\samp02Xserver.win32\gamemodes\BCL-RP.pwn(3140) : warning 204: symbol is assigned a value that is never used: "RandomMaleSkin"
But the code seems good and it works IG :/ What's wrong?
pawn Код:
stock RandomSkin(playerid)
{
    if(PlayerInfo[playerid][pSex] == 1)
    {
        new RandomMaleSkin[7][] = { {60}, {66}, {101}, {128}, {170}, {180}, {188} };
        new rand = random(sizeof(RandomMaleSkin));
        SetPlayerSkin(playerid, rand);
    }
    else if(PlayerInfo[playerid][pSex] == 2)
    {
        new RandomFemaleSkin[7][] = { {56}, {69}, {93}, {141}, {150}, {191}, {193} };
        new rand = random(sizeof(RandomFemaleSkin));
        SetPlayerSkin(playerid, rand);
    }
}
Thanks in advance
Reply


Messages In This Thread
Juqt a small question about random func - by Coicatak - 09.07.2009, 18:20
Re: Juqt a small question about random func - by yom - 09.07.2009, 18:26
Re: Juqt a small question about random func - by Coicatak - 09.07.2009, 18:53

Forum Jump:


Users browsing this thread: 1 Guest(s)