Nabend Community!
Was will der Compiler mit damit sagen?
D:\Rockstar Games\gamemodes\CaR.pwn(355) : error 032: array index out of bounds (variable "vSpawns")
Hier die Errorzeile:
new rSpawns;
rSpawns = random(sizeof(vSpawns));
SetPVarInt(playerid,"Fraktion",2); // <- Robber
SendClientMessage(playerid,-1,"Du bist nun ein {C91212}Verbrecher{FFFFFF}!");
/*ERROR*/ SetPlayerPos(playerid,vSpawns[rSpawns][0],vSpawns[rSpawns][1],vSpawns[rSpawns][2],vSpawns[rSpawns][3],vSpawns[rSpawns][4],vSpawns[rSpawns][5],vSpawns[rSpawns][6],vSpawns[rSpawns][7],vSpawns[rSpawns][8],vSpawns[rSpawns][9]);
return 1;