Alors public OnGameModeInit()
{
MySQLConnect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS,MYSQL_DB);
print("[SERVEUR] Chargement des véhicules..");
LoadSQLCars();
print("[SERVEUR] Chargement des bizz..");
LoadSQLBizz();
print("[SERVEUR] Chargement des maisons..");
LoadSQLProperty();
print("[SERVEUR] Chargement des chambres d'hôtels..");
LoadSQLChambre();
print("[SERVEUR] Chargement des localisations GPS..");emer
LoadSQLGPS();
print("[SERVEUR] Chargement des stations..");
LoadSQLStation();
print("[SERVEUR] Chargement des timers..");
startTimers();
Et La Commands recharger :
if(strcmp(subcmd, "house", true) == 0)
{
LoadSQLProperty();
format(string,sizeof(string), "[Admin] %d maison chargées et reloadées.",totalhouses);
SendClientMessage(playerid, COLOR_ADMIN,string);
return 1;
}
if(strcmp(subcmd, "biz", true) == 0)
{
LoadSQLBizz();
format(string,sizeof(string), "[Admin] %d biz chargés et reloadés.",totalbizz);
SendClientMessage(playerid, COLOR_ADMIN,string);
return 1;
}