MySQL Vehicles Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL Vehicles Help (
/showthread.php?tid=446089)
MySQL Vehicles Help -
yanir3 - 24.06.2013
I have vehicles table with auto increment..
PHP код:
for(new i=0; i < 500; i++)
{
LoadVehicle(i); // i = slot
}
It for some reason fucks up my whole server, can't even login, no commands are working.
This is what I have in LoadVehicle:
PHP код:
format(query, sizeof(query), "SELECT * FROM `vehicles` WHERE `id` = %d", slot);
mysql_function_query(gHandle, query, true, "OnVehicleLoad", "d", slot);
It makes my server stuck..
Re: MySQL Vehicles Help -
yanir3 - 24.06.2013
Well dress me up and call me Shirley, it was only because streamer plugin loaded before the mysql plugin
Re: MySQL Vehicles Help -
Vince - 24.06.2013
Ah, my eyes hurt! You mustn't treat an SQL database as a file system.
https://sampforum.blast.hk/showthread.php?tid=366019
Re: MySQL Vehicles Help -
yanir3 - 24.06.2013
Quote:
Originally Posted by Vince
|
I've already realized it, and rewritten it