15.07.2013, 20:41
Hi...
I'm doing a car shop system, but i've an error:
OnGameModeInit, when i load the number os cars saved in the folder (i created a .txt file with the number os cars, and it's change every time that a car is added) it gives me those errors:
Those are the lines:
But if i white:
It works
Any one can help me.
I want that the size of the array be the number in the file "NumCarros.txt"
Thanks
Sorry my bad english, i'm portuguese
I'm doing a car shop system, but i've an error:
OnGameModeInit, when i load the number os cars saved in the folder (i created a .txt file with the number os cars, and it's change every time that a car is added) it gives me those errors:
Код:
MIB-X.pwn(671) : error 008: must be a constant expression; assumed zero MIB-X.pwn(671) : error 009: invalid array size (negative, zero or out of bounds) MIB-X.pwn(671) : error 036: empty statement MIB-X.pwn(671) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Those are the lines:
pawn Код:
new MAX_CARS = dini_Int("Carros/NumCarros.txt","Numero");
new CarrosSis[MAX_CARS + 1];//This is line 671
pawn Код:
new CarrosSis[100];// Any number
Any one can help me.
I want that the size of the array be the number in the file "NumCarros.txt"
Thanks
Sorry my bad english, i'm portuguese