Mysql mysql_ping undefined?
#10

Quote:
Originally Posted by Kiyozi_Mu
Посмотреть сообщение
I mean, cache function, check it out: https://sampforum.blast.hk/showthread.php?tid=337810
Okay thanks, i will try it out. Will take some time to convert all stuff.
Other question:
I dont need to use mysql_store_result() and mysql_free_result() anymore like in this code:
pawn Код:
mysql_store_result();
            if(mysql_num_rows(gSQL) > 0)
            {
               
                mysql_fetch_row_format(resultline);

                if(sscanf(resultline, "p<|>dddddddddddddddddddddddddddd",
                    PlayerInfo[extraid][pWeapon1],
                    PlayerInfo[extraid][pWeapon1Ammo],
                    PlayerInfo[extraid][pWeapon2],
                    PlayerInfo[extraid][pWeapon2Ammo],
                    PlayerInfo[extraid][pWeapon3],
                    PlayerInfo[extraid][pWeapon3Ammo],
                    PlayerInfo[extraid][pWeapon4],
                    PlayerInfo[extraid][pWeapon4Ammo],
                    PlayerInfo[extraid][pWeapon5],
                    PlayerInfo[extraid][pWeapon5Ammo],
                    PlayerInfo[extraid][pWeapon6],
                    PlayerInfo[extraid][pWeapon6Ammo],
                    PlayerInfo[extraid][pWeapon7],
                    PlayerInfo[extraid][pWeapon7Ammo],
                    PlayerInfo[extraid][pWeapon8],
                    PlayerInfo[extraid][pWeapon8Ammo],
                    PlayerInfo[extraid][pWeapon9],
                    PlayerInfo[extraid][pWeapon9Ammo],
                    PlayerInfo[extraid][pWeapon10],
                    PlayerInfo[extraid][pWeapon10Ammo],
                    PlayerInfo[extraid][pWeapon11],
                    PlayerInfo[extraid][pWeapon11Ammo],
                    PlayerInfo[extraid][pWeapon12],
                    PlayerInfo[extraid][pWeapon12Ammo],
                    PlayerInfo[extraid][pCarSlots],
                    PlayerInfo[extraid][pBoatSlots],
                    PlayerInfo[extraid][pHeliSlots],
                    PlayerInfo[extraid][pPlaneSlots]))
                    {
                        //SendClientMessage(extraid, LIGHT_GREEN, "There was a problem while loading your account");
                        //KickEx(extraid);
                        mysql_free_result();
                        return 1;
                    }
            }
            mysql_free_result();
Reply


Messages In This Thread
Mysql mysql_ping undefined? - by Admigo - 09.03.2014, 12:12
Re: Mysql mysql_ping undefined? - by arakuta - 09.03.2014, 12:17
Re: Mysql mysql_ping undefined? - by Admigo - 09.03.2014, 12:18
Re: Mysql mysql_ping undefined? - by RenovanZ - 09.03.2014, 12:23
Re: Mysql mysql_ping undefined? - by arakuta - 09.03.2014, 12:25
Re: Mysql mysql_ping undefined? - by Admigo - 09.03.2014, 12:31
Re: Mysql mysql_ping undefined? - by RenovanZ - 09.03.2014, 12:34
Re: Mysql mysql_ping undefined? - by Admigo - 09.03.2014, 12:37
Re: Mysql mysql_ping undefined? - by RenovanZ - 09.03.2014, 12:38
Re: Mysql mysql_ping undefined? - by Admigo - 09.03.2014, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)