Nochmal ich, und zwar habe ich ein Random erstellt, doch der sagt mir das ich die Flasche klammer habe?
error 052: multi-dimensional arrays must be fully initialized
new Float:gRandomPlayerSpawns[23][3] = {
{-1606.8710,674.1122,-5.2422}, //sfpolice
{-2625.6665,1514.8032,18.9266}, //sfterror
{-781.1594,2458.2051,157.2500},//terrorlv
{-328.8428,1536.3287,76.6117}, //copslv
{213.4122,1865.0386,13.1406}, //copslv2
{413.4362,2533.7102,19.1484} //terrorlv2
};
error 017: undefined symbol "iSpawnSet"
warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
public SetPlayerRandomSpawn(playerid)
{
if (iSpawnSet,[playerid] == 1)
{
new rand = random(sizeof(gCopPlayerSpawns));
SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
}
else if (iSpawnSet[playerid] == 0)
{
new rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
}
return 1;
}