SA-MP Forums Archive
[Pedido] MySQL R7 > R38 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] MySQL R7 > R38 (/showthread.php?tid=519088)



MySQL R7 > R38 - Simetris - 12.06.2014

Como ficaria o cуdigo abaixo sendo usada as funзхes disponнveis no MySQL R38?

pawn Код:
stock GetPlayerClan(playerid)
{
    new clan_name[15];
    new cq[100];
    format(cq, sizeof(cq), "SELECT cl_cname FROM tb_members WHERE cl_pname = '%s'", PlayerName(playerid));
    mysql_query(cq);
    mysql_store_result();
    mysql_fetch_row(clan_name);
    mysql_free_result();
    return clan_name;
}