MySQL Spam
#9

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
Do you get the id from
pawn Код:
VehicleInfo[i][SQLID]
or from
pawn Код:
i
Try both of them. In case you're using the first, it somehow might got a value 0 for a SQLID.

TIP: Use a function from SA:MP for checking if a vehicle is valid/exists (https://sampwiki.blast.hk/wiki/IsValidVehicle), instead of doing
pawn Код:
VehCreated[i] = false;
VehCreated[i] = true;
I used the first one. I'll try the next one now.

The VehCreated[i] is for this:

pawn Код:
new ID = GetVehID();
VehInfo[ID][color1] =

....
pawn Код:
GetVehID()
{
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
        if(VehCreated[i] == false) return i;
    }
    return -1;
}
Reply


Messages In This Thread
MySQL Spam - by thefatshizms - 30.07.2013, 15:10
Re: MySQL Spam - by thimo - 30.07.2013, 15:12
Re: MySQL Spam - by thefatshizms - 30.07.2013, 15:13
Re: MySQL Spam - by thimo - 30.07.2013, 15:18
Re: MySQL Spam - by Konstantinos - 30.07.2013, 15:21
Re: MySQL Spam - by thefatshizms - 30.07.2013, 15:23
Re: MySQL Spam - by thefatshizms - 30.07.2013, 15:33
Re: MySQL Spam - by Konstantinos - 30.07.2013, 15:42
Re: MySQL Spam - by thefatshizms - 30.07.2013, 15:50
Re: MySQL Spam - by Konstantinos - 30.07.2013, 16:00

Forum Jump:


Users browsing this thread: 2 Guest(s)