29.06.2014, 15:55
So, I have a vehicle enum with variable - vOwner in it.
It'd look like:
And then OnGameModeInit, I load the info from database about that vehicle:
However, that works but the strcmp isn't working which is under it:
Now, if I add [21] to the vOwner variable (it would be like "vOwner[21]"), it'll mess up the textdraws for some reason...
Any ideas?
It'd look like:
Код:
enum VInfo { vOwner, ... }
pawn Код:
db_get_field_assoc(re, "owner", Field, 21); format(VehicleInfo[vid][vOwner], 21, "%s", Field);
pawn Код:
if(strcmp(VehicleInfo[vid][vOwner], "Sale") == 0
{
}
Any ideas?