need help with error 033 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need help with error 033 (
/showthread.php?tid=303022)
need help with error 033 -
niels44 - 11.12.2011
hey guys,
i want to make random spawns for my server but now i have this problem.......
Код:
F:\program files\my own drifting gamemode\gamemodes\NYD_Drifting1.pwn(132) : error 033: array must be indexed (variable "StreetracersSpawn")
this is line 132
Код:
StreetracersSpawn = AddPlayerClass(105,1048.4546,1928.2059,10.8203,261.0777,0,0,0,0,0,0);//Streetracers member (1)
and this is the new...
Код:
new StreetracersSpawn[][ClassSpawns] =
{
{-525.0, -502.0, 26.0, 0.0},
{-74.7, -1137.5, 4.5, 0.0}
};
but i can't fix this error.. how to fix this? pls help
Re: need help with error 033 -
THE_KNOWN - 11.12.2011
Why do you have 2 coords?
StreetracersSpawn = AddPlayerClass(105,1048.4546,1928.2059,10.8203,261 .0777,0,0,0,0,0,0);//Streetracers member (1)
change the var here
EDIT: try StreetracersSpawn[0] = AddPlayerClass(105,1048.4546,1928.2059,10.8203,261 .0777,0,0,0,0,0,0);
Re: need help with error 033 -
Kostas' - 11.12.2011
pawn Код:
new StreetracersSpawn[][] =
// The [] is for the numbers. In that case you have 2 places and Float: X, Y, Z, Angle.
// So it's should be new StreetracersSpawn[2][4] =
// But I suggest you let it empty, because you can add more without change it
{
{-525.0, -502.0, 26.0, 0.0},
{-74.7, -1137.5, 4.5, 0.0}
};