30.08.2013, 15:26
Hey guys,
So I am kind of experimenting with something and I am trying to make a 3-dimensional float to work:
Then I try to print one of the coords:
No errors or whatsoever with compiling, but when I start the server, it gives me these errors:
What's wrong here? It only happens when I put the printf there.
EDIT: Got it fixed by doing [2][3][4] or [][][4], seems you can't do something like [2][][4]...
So I am kind of experimenting with something and I am trying to make a 3-dimensional float to work:
Код:
new Float:Spawnpoints[2][][4] =
{
{//team 1
{ 0.0, 0.0, 0.0, 0.0 },
{ 0.0, 0.2, 0.3, 0.4 },
{ 0.0, 0.2, 0.3, 0.4 }
},
{//team 2
{ 0.0, 0.0, 0.0, 0.0 },
{ 0.0, 0.2, 0.3, 0.4 },
{ 0.0, 0.2, 0.3, 0.4 }
}
};
Код:
printf("%f", Spawnpoints[0][0][0]);
Код:
[17:23:24] [debug] Run time error 22: "AMX not initialized (or doubly initialized)" [17:23:24] [debug] Run time error 22: "AMX not initialized (or doubly initialized)" [17:23:24] Script[gamemodes/basetdm.amx]: Run time error 22: "AMX not initialized (or doubly initialized)"
EDIT: Got it fixed by doing [2][3][4] or [][][4], seems you can't do something like [2][][4]...
