sscanf & strings problem
#1

I'm having a bug with a code for vehicles name wich i made
pawn Код:
sscanf(Query, "p<|>e<iiiiffff'string'[25]iii'string'[50]>", vehicleinfo[i]);
i will explain the "p<|>" its a delimiter the "e< >" is the enum

inside the enum "i" its a int then four floats "f" and the strings 'string'[25] . the first string its the Owner name of the vehicle. The second its the vehicle name.

It loads everything from the cars its spawns the vehicles etc sets the key colors everything and it works with my code.

But the strings are not working when i try to format these strings for a command like "list" wich its suppose to display the vehicle names and owner. But this is not happening.

Hope someone can help me with it. : P

EDITE: Here is my enum everything matches.
pawn Код:
enum vInfo()
{
    id,
    Model,
    Color1,
    Color2,
    Float:x,
    Float:y,
    Float:z,
    Float:a,
    Owner,
    Lock,
    Parked,
    Spawned,
    VehicleName[50],
}
new vehicleinfo[MAX_VEHICLES][vInfo];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)