Need help with random skin on spawn.
#1

Ok so I wanna make it so when a player spawns his skin will change randomly.

This is what I've got...


new mafiaskin[][1] = {{111},{112},{125},{126}};

public OnPlayerSpawn(playerid)
{

new rand = random(sizeof(mafiaskin));
SetPlayerSkin(playerid,mafiaskin[rand][1]);

}

Can anyone explain to me what the 1 in my code actually means? Like what am I suppose to put there? I can't find any guides about it. It would be much appreciated.
Reply


Messages In This Thread
Need help with random skin on spawn. - by Celson - 29.07.2009, 04:32
Re: Need help with random skin on spawn. - by Daren_Jacobson - 29.07.2009, 04:34
Re: Need help with random skin on spawn. - by Celson - 29.07.2009, 04:47
Re: Need help with random skin on spawn. - by NeedAName - 30.07.2009, 22:55
Re: Need help with random skin on spawn. - by D3nnis - 30.07.2009, 23:00
Re: Need help with random skin on spawn. - by Jefff - 30.07.2009, 23:02
Re: Need help with random skin on spawn. - by Antonio [G-RP] - 30.07.2009, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)