need help with error 033
#1

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
Reply
#2

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);
Reply
#3

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}
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)