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
};
new x = random(4);
SetPlayerPos(playerid, SpawnPoints[2][x][0], SpawnPoints[2][x][1], SpawnPoints[2][x][2]);
SetPlayerFacingAngle(playerid, SpawnPoints[2][x][3]);
C:\Users\Lucas\Desktop\Pawno\gamemodes\Project001.pwn(99) : error 018: initialization data exceeds declared size
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 };
new Float:SpawnPoints[7][4] =
{
{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}
};
The problem with that is it's not going to do what I need it to do.
|