MYSQL problem... +rep - 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 problem... +rep (
/showthread.php?tid=560242)
MYSQL problem... +rep -
simo0000 - 27.01.2015
hello guys
all works fine all garages save in mysql database but i can't load garages
0 garages loaded in server_log
pawn Код:
stock Load_Garages() //Loads all garages
{
garageCount = 0; //Make a debug garage
new sql[128];
new i;
mysql_query(mysql, "SELECT * FROM `garages`");
mysql_store_result();
while(mysql_fetch_row(sql))
{
sscanf(sql, "e<p<|>s[24]dddfffdd>", gInfo[i]);
UpdateGarageInfo(i);
garageCount++;
i++;
}
mysql_free_result();
printf("[jGarage]: Loaded %i garages.",garageCount); //The debug garage isn't a real garage, so we take 1 away
garageCount++; //To prevent overwriting/not detecting of garages
#if AUTOSAVE == true
SetTimer("Save_Garages",AUTOSAVE_INTERVAL*1000,true); //Start the autosave timer if enabled
#endif
}
sorry for my bad english
Re: MYSQL problem... +rep -
ShiffeyTheGamer - 27.01.2015
Create a garage in the server
Re: MYSQL problem... +rep -
simo0000 - 27.01.2015
Quote:
Originally Posted by ShiffeyTheGamer
Create a garage in the server
|
already and saved in the mysql database but can't load them!
Re: MYSQL problem... +rep -
simo0000 - 27.01.2015
help
Re: MYSQL problem... +rep -
Rabea - 27.01.2015
type this under OnGameModeInIt
Re: MYSQL problem... +rep -
simo0000 - 27.01.2015
Quote:
Originally Posted by Rabea
type this under OnGameModeInIt
|
already bro :/ plz help me guys