Little Help
#1

Hey. I got a little problem with random spawn, I got only warnings (no errors). Here's code:

Код:
new Float:RandomSpawn[][4] = {
    {419.800018,2531.705322,16.157726,180},
    {2041.805,-3113.831,7.442,180},
    {1319.23620600,1254.57458500,10.37386700,0}
};
Код:
public OnPlayerSpawn(playerid)
{
	new rands = random(sizeof(RandomSpawn));
    SetPlayerPos(playerid, RandomSpawn[rands][0], RandomSpawn[rands][1], RandomSpawn[rands][2]);
    SetPlayerFacingAngle(playerid, RandomSpawn[rands][3]);
	return 1;
}
And the problem is tag mismatch in the coordinates. Can anyone change it to no-warnings code?
Reply


Messages In This Thread
Little Help - by Libra_PL - 14.02.2011, 05:36
Re: Little Help - by -Rebel Son- - 14.02.2011, 05:42
Re: Little Help - by (SF)Noobanatior - 14.02.2011, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)