MySQL problem
#1

Hey, when i add more cars into my MySQL they not come in game whats the problem?
Reply
#2

Can you show us some of the loading code?

Have you checked your array sizes? How many vehicles? If your using for loops with a set size or a while loop for all cars? etc
Reply
#3

Where can i find array sizes? into the script then?
Reply
#4

Well I guess your storing the vehicle information in something like mycar[carid][someinfo]; right? If your not then apologies, if you are check that carid is set to MAX_VEHICLES and ensure you don't have more than MAX_VEHICLES trying to load in.

The best thing to do is show us your loading code.
Reply
#5

Nope there no limit so what then can be the problem?
Reply
#6

pawn Код:
stock GetOwnedVehicleID(playerid)
{
    for(new v = 1; v < MAX_VEHICLES; v++)
    {
        if (IsVehicleSpawned(v))
        {
            if (!strcmp(VehicleInfo[v][vOwner], GetName(playerid))) return v;
        }
    }
    return INVALID_VEHICLE_ID;
}
Reply
#7

Show your load vehicle function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)