Weird string array bug (Experienced scripters please)
#1

So, I have a vehicle enum with variable - vOwner in it.
It'd look like:

Код:
enum VInfo
{
     vOwner,
     ...
}
And then OnGameModeInit, I load the info from database about that vehicle:
pawn Код:
db_get_field_assoc(re, "owner", Field, 21); format(VehicleInfo[vid][vOwner], 21, "%s", Field);
However, that works but the strcmp isn't working which is under it:
pawn Код:
if(strcmp(VehicleInfo[vid][vOwner], "Sale") == 0
{

}
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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)