Hey, ich bin grade mein Tersorrob am machen...
Doch irgendwie funktoniert das nicht so ganz wie ich das will :O
//oben
new Tresorzeit[MAX_PLAYERS];
//im befehl
if(Tresorzeit[MAX_PLAYERS] == 0)
{
//wenn tresor ausgeraubt wurde
Tresorzeit[MAX_PLAYERS] = 1;
//wenn timer zu ende ist
public Tresorauslauf()
{
Tresorzeit[MAX_PLAYERS] = 0;
return 1;
}
& das sind die Errors:
C:\Users\Felix\Desktop\***\gamemodes\***.pwn(21995) : error 032: array index out of bounds (variable "Tresorzeit")
C:\Users\Felix\Desktop\***\gamemodes\***.pwn(22004) : error 032: array index out of bounds (variable "Tresorzeit")
C:\Users\Felix\Desktop\***\gamemodes\***.pwn(64968) : error 032: array index out of bounds (variable "Tresorzeit")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Ist immer die Zeile mit dem Tresorzeit[MAX_PLAYERS]