31.03.2015, 09:30
I'm currently trying to make a Float's default value -1.
So i know i can use a loop in OnGameModeInit to set it to -1:
But normally with a variable you can do it this way:
Although with a float, that gives warning 213: "tag mismatch".
So therefore i tried using -1.0:
Which gives warning 232: "output file is written, but with compact encoding disabled".
It makes the AMX file go from 3kb to 10kb, but apart from that, is there any other effects, or anything to worry about?
So i know i can use a loop in OnGameModeInit to set it to -1:
pawn Код:
public OnGameModeInit() for(new i = 0; i < MAX_VEHICLES; i ++) Test[i] = -1;
pawn Код:
new
Float: Test[MAX_VEHICLES] = { -1, ... }
;
So therefore i tried using -1.0:
pawn Код:
new
Float: Test[MAX_VEHICLES] = { -1.0, ... }
;
It makes the AMX file go from 3kb to 10kb, but apart from that, is there any other effects, or anything to worry about?