MYSQL problem... +rep
#1

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
Reply
#2

Create a garage in the server
Reply
#3

Quote:
Originally Posted by ShiffeyTheGamer
Посмотреть сообщение
Create a garage in the server
already and saved in the mysql database but can't load them!
Reply
#4

help
Reply
#5

type this under OnGameModeInIt
pawn Код:
Load_Garages()
Reply
#6

Quote:
Originally Posted by Rabea
Посмотреть сообщение
type this under OnGameModeInIt
pawn Код:
Load_Garages()
already bro :/ plz help me guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)