Problem
#1

Hey SA-MP, when i want to compile my GM, i get error at the definition of the line,i had try two metods, but it doesn't work:
pawn Код:
new C_DATA[MAX_PLAYERS];
And:
pawn Код:
new C_DATA[MAX_HOUSES];
And i get this error:
pawn Код:
error 009: invalid array size (negative, zero or out of bounds)
And this is the linie:
pawn Код:
DestroyVehicle( C_DATA[ i ][ HouseCar ] );
How i must define?
Help me ||>
Reply
#2

WHat s MAX_HOUSES defined as?
Reply
#3

Defined:
pawn Код:
#define MAX_HOUSES
Reply
#4

DestroyVehicle( C_DATA[ i ][ HouseCar ] ); tells me C_DATA has a enumerator and is defined incorrectly. You should have something like this.

pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS 200

enum C_ENUM {
   HouseCar,
   Kills,
   Deaths
}

new C_DATA[MAX_PLAYERS][C_ENUM];
Reply
#5

Thnkyou a lot !!!!!!! /:* It WORKS )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)