29.01.2013, 15:25
So I've got this array in which I want to save all of the possible spawn points arranged into sections based on what team they belong to:
These are intended to be used like this:
But the problem is this:
PHP код:
new Float:SpawnPoints[4][][4] = {
//[4] (the number of teams)
//[] (because not every teams has the same
//[4] (4 floats)
{
{1.1,1.2,1.3,1.4} //
},
{
{1.1,1.2,1.3,1.4}
},
{ //Testing with this group!
{1568.7694, -1693.1819, 5.8906, 178.7481},
{1527.3857, -1677.7524, 5.8906, 271.1589},
{1571.9768, -1634.2754, 13.5559, 0.4598},
{257.8044, 78.9585, 1003.6406, 180.4818}
},
{
{1.1,1.2,1.3,1.4}
}, //This is line 99
};
PHP код:
new x = random(4);
SetPlayerPos(playerid, SpawnPoints[2][x][0], SpawnPoints[2][x][1], SpawnPoints[2][x][2]);
SetPlayerFacingAngle(playerid, SpawnPoints[2][x][3]);
PHP код:
C:\Users\Lucas\Desktop\Pawno\gamemodes\Project001.pwn(99) : error 018: initialization data exceeds declared size