MySQL Spam
#10

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
I used the first one. I'll try the next one now.
Okay, I'm waiting.

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
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;
}
You can use:
pawn Код:
if(!IsValidVehicle(i)) return i;
It's better to use a native from SA:MP instead of a variable!

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
Still spams with IsValidVehicle.. this means it thinks thefatshizms owns every vehicle in the server..
Trust me, it works just fine! I use it for deleting not occupied vehicles by checking if the vehicle exists. I have absolutely no problem.
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)