21.03.2016, 21:56
Have an issue with MySQL Connecting twice, this means it loads two sets of each vehicles up, etc
pawn Код:
ManualVehicleEngineAndLights();
ShowPlayerMarkers(0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetGameModeText(SCRIPT_VERSION);
new string[128];
format(string, sizeof(string), "hostname %s", Hostname);
SendRconCommand(string);
mysql_log(LOG_ALL);
mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASSWORD);
if(mysql_errno() != 0)
{
printf("[MySQL] The connection has failed.");
}
else
{
printf("[MySQL] The connection was successful.");
}
mysql_tquery(mysql, "SELECT * FROM `vehicles` ORDER BY ID ASC", "LoadVehicles");
return true;