Mysql Conversion
#1

I don't know very good mysql ... and i don't know how to convert this mysql

pawn Код:
PlayerInfo[playerid][pMeleeWep] = cache_get_row_int(0, 43);
    PlayerInfo[playerid][pPerm1] = cache_get_row_int(0, 44);
    PlayerInfo[playerid][pPerm2] = cache_get_row_int(0, 45);
    PlayerInfo[playerid][pAmmo1] = cache_get_row_int(0, 46);
    PlayerInfo[playerid][pAmmo2] = cache_get_row_int(0, 47);

to SA-MP MySQL plugin R5 G-Stylezzz plugin..

an example
pawn Код:
mysql_fetch_field_row(bb,"forumname");
            format(CharacterInfo[playerid][ii][cFname],64,"%s",bb);
Reply
#2

pawn Код:
mysql_fetch_field_row(bb,"melee");
            format(CharacterInfo[playerid][ii][cMeleeWep],64,"%d",bb);
            mysql_fetch_field_row(bb,"wep1");
            format(CharacterInfo[playerid][ii][cPerm1],64,"%d",bb);
            mysql_fetch_field_row(bb,"wep2");
            format(CharacterInfo[playerid][ii][cPerm2],64,"%d",bb);
            mysql_fetch_field_row(bb,"ammo1");
            format(CharacterInfo[playerid][ii][cAmmo1],64,"%d",bb);
            mysql_fetch_field_row(bb,"ammo2");
            format(CharacterInfo[playerid][ii][cAmmo2],64,"%d",bb);

i tried this.. it's ok ? how i maked?
Reply
#3

can u tell me what exactly are you trying to do?
Reply
#4

It's 2 different mysql plugins , and i want to covert from MySQL plugin R23 to SA-MP MySQL plugin R5 G-Stylezzz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)