[MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (2).[2015/10/27 15:37:06] Function: mysql_fetch_row called when not connected to any database. Can\'t connect to local
public OnGameModeInit(){Streamer_VisibleItems(STREAMER_TYPE_OBJECT, 1024);Streamer_VisibleItems(STREAMER_TYPE_PICKUP, 4096);Streamer_VisibleItems(STREAMER_TYPE_MAP_ICON, 4096);Streamer_VisibleItems(STREAMER_TYPE_3D_TEXT_LABEL, 4096);AddObjectFromFile(OBJECT_FILE_NAME);inc300_OnAFKanimInit(); SetTimer(\"ProgressBar\", 500, 1);/*SetMaxPing(500);CheckSet(CHEAT_WEAPON, -1, false);CheckSet(CHEAT_INACTIVITY, -1, false);CheckSet(CHEAT_BACK_FROM_INACTIVITY, -1, false);*/ for(new i = 0; i < MAX_PLAYERS; i++) { CreatePlayerTextdraws(i); }ManualVehicleEngineAndLights();//SetPDistance(0); DisableInteriorEnterExits();EnableStuntBonusForAll(false);ShowNameTags(true);SetNameTagDrawDistance(250.0);mysql_init(LOG_ALL);MysqlKapcsolodas(true);DisableNameTagLOS();mysql_query(\"UPDATE playerek SET Online=\'0\'\");//Vezetek = false;LoadBankAdatok();LoadFrakcioSQL();LoadRaktar();SzefToltes();GazdasagBetoltes();CreateBuza();LoadIRC();LoadBoxer();LoadInts();LoadIgenylesek();LoadAjtok();GyemantBetoltes();LoadBizz();LoadHouse();//LoadWebTargyak();AllCarSpawn();LoadBenzinKutak();LoadATM();LoadFulke();LoadStuff();UjBankJelszo();GenerateLSBankPW();ResetElevatorQueue();Lift_Lerak();LoadKapu();NamelloInit();LoadDrog();LoadFegyver();LoadPenz();#if defined KELLNPCNPCkCsatlakoztatasa();#endif#if defined War_SystemTeruletekBetoltese();#endiffor(new b = 0; b < MAX_BENZINKUT; b++){if(BenzinKutak[bMaxBenzin] != 10000){ BenzinKutak[bMaxBenzin] = 10000; BenzinKutak[bBenzin] = 500; BenzinKutak[bBenzinAra] = BizzInfo[bIZ_OLAJ][bEntranceCost];}if(strlen(BenzinKutak[bNev]) < 2){ strmid(BenzinKutak[bNev], BizzInfo[bIZ_OLAJ][bMessage], 0, strlen(BizzInfo[bIZ_OLAJ][bMessage]), 255);}}IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;IRCInfo[9][iPlayers] = 0;SetGameModeText(modnev);SetMapName(mapnev);for(new i = 0; i < MAX_KINCS; i++)KincsInfo[tVanLerakva] = 0;for(new frakcio = 0; frakcio < MAX_FRAKCIO; frakcio ++){FrakcioInfo[frakcio][fOOCRadio] = true;}gettime(ghour, gminute, gsecond);ghour = FixHour(ghour);if(!Nametime){SetWorldTime(wtime);}IndulasIdo = gettime();//EnableZoneNames(1);AllowInteriorWeapons(1);//AllowAdminTeleport(1);//UsePlayerPedAnims();SetNameTagDrawDistance(50);for(new v = 0; v < MAXVSKOCSI; v++){Matrica[v] = 3;}// CreatedCars checkfor(new i = 0; i < sizeof(CreatedCars); i++){ CreatedCars = 0;}for(new i = 0; i <= sizeof(Peds)-1; i++){AddPlayerClass(Peds[0],1958.3783,1343.1572,1100.3746,269.1425, 0, 0, 0, 0, 0, 0);}for(new i = 0; i < sizeof(NPCKocsi); i++)NPCKocsi = false;for(new c = 0; c < MAX_VEHICLES; c++){if(BenzinesKocsi(c)) Gas[c][0] = MaxBenzin(c);else if(DieselesKocsi(c)) Gas[c][1] = MaxBenzin(c);MennyiszerLop[c] = NINCS;VanBombaBenne[c] = NINCS;Lopott[c] = false;HutoViz[c] = 18.0;}TuzVan[0] = 0;TuzVan[1] = 0;TextLabelBetoltes();//Fegyenctelep2 = CreateDynamicRectangle(485.9006, -2359.6682, 746.4683, -2535.3623);Areak[aLunaPark] = CreateDynamicRectangle(-2084.469726, -288.566528, -2004.469726, -188.566513);CNNStudioNuevo[0]=CreateObject(6490, 717.48438, -1357.30469, 20.29688, 0.00000, 0.00000, 0.00000);/*#pragma unused gFerrisBasegFerrisWheel = CreateObject( FERRIS_WHEEL_ID, gFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2], 0.0, 0.0, FERRIS_WHEEL_Z_ANGLE, FERRIS_DRAW_DISTANCE ); gFerrisBase = CreateObject( FERRIS_BASE_ID, gFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2], 0.0, 0.0, FERRIS_WHEEL_Z_ANGLE, FERRIS_DRAW_DISTANCE );new fg=0;while(fg != NUM_FERRIS_CAGES){ gFerrisCages[fg] = CreateObject( FERRIS_CAGE_ID, gFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2], 0.0, 0.0, FERRIS_WHEEL_Z_ANGLE, FERRIS_DRAW_DISTANCE ); AttachObjectToObject( gFerrisCages[fg], gFerrisWheel, gFerrisCageOffsets[fg][0], gFerrisCageOffsets[fg][1], gFerrisCageOffsets[fg][2], 0.0, 0.0, FERRIS_WHEEL_Z_ANGLE, 0 );fg++;}*/}
stock MysqlKapcsolodas(bool:muvelet){if(!Mysql && muvelet == true){mysql_connect(SQL_Host, SQL_User, SQL_Jelszo, SQL_Adatbazis);}//mysql_connect(SQL_Host, SQL_User, SQL_Jelszo, SQL_Adatbazis);return 1;}
#define SQL_Host \"127.0.0.1\"#define SQL_User \"szabi\"#define SQL_Jelszo \"12345678\"#define SQL_Adatbazis \"szabi\"#define SQL_DB_Kocsik \"kocsik\"#define SQL_DB_Hazak \"hazak\"#define SQL_DB_Bizek \"bizek\"#define SQL_DB_Ban \"bans\"#define SQL_DB_Player \"playerek\"#define SQL_DB_Verseny \"versenyek\"#define SQL_DB_Server \"server\"#define SQL_DB_Terulet \"teruletek\"#define SQL_DB_Kapuk \"kapuk\"#define SQL_DB_ATM \"atmek\"#define SQL_DB_Fulke \"fulkek\"#define SQL_DB_Raktar \"raktar\"#define SQL_DB_Gazdasag \"gazdasag\"#define SQL_DB_Butorok \"butorok\"#define SQL_DB_Boltok \"boltok\"
mysql_connect(mysql_host,mysql_user,mysql_database,mysql_password);