Heyo hab folgendes Problem
Bekomme den error
C:\Users\Markus\Desktop\Stunt\gamemodes\freeroamselfmade.pwn(158) : error 032: array index out of bounds (variable "DM1Spawns")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Hier alles zusammen
new Float:DM1Spawns[5][3] =
{
{-2126.9319,342.7235,67.1692},//Spawn1
{-2124.2603,374.1755,67.1692},//Spawn2
{-2082.9463,367.9211,67.1692},//Spawn3
{-2028.3717,341.5887,67.1692},//Spawn4
{-2027.4733,373.9023,67.1692}//spawn5
};
if(DM1[playerid]==1)
{
new DM1Spawn;
DM1Spawn = random(sizeof(DM1Spawns));
SetPlayerPos(playerid,DM1Spawns[DM1Spawn][0],DM1Spawns[DM1Spawn][1],DM1Spawns[DM1Spawn][2],DM1Spawns[DM1Spawn][3],DM1Spawns[DM1Spawn][4]);
}
HOffentlich konnt ihr mir helfen
MFg