Jump to content

Question

Posted

Salutare SA-MP.ro, dgraba finisez GM-ul si a mai ramas numai o eroare, si am venit aici ca sa ma ajutati sa o rezolv:

Linia:

[pawn]

C_DATA[ housenumber ][ NewCar ] = 1;

[/pawn]

Si eroarea:

[pawn]

error 032: array index out of bounds (variable "C_DATA")

[/pawn]

Daca aveti nevoie, aiata enum-ul C_DATA:

[PAWN]

enum C_ENUM {

  HouseCar,

  Kills,

  Deaths

}

new C_DATA[MAX_PLAYERS][C_ENUM];

[/PAWN]

Ideas?

1 answer to this question

Recommended Posts

Posted

Cand foloseste enumul C_DATA trebuie sa fie sub formatul asta:

C_DATA[ playerid ][ data_din_enum ];

In cazul tau ar trebuii sa fie:

C_DATA[ playerid ][ housenumber ];

Dar tu nu ai housenumber in acel enum asa ca adaugal tu sub celelalte chestii.

enum C_ENUM {
   HouseCar,
   Kills,
   Deaths,
   housenumber
}

Just Rock

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.