[Ajuda] Mysql
#3

Optei por fazer assim:
pawn Код:
#define MysqlQuery(%0.%1.%2.%3.%4) \
        mysql_format(MysqlConnect, iQuery, sizeof(iQuery), %0, %1);\
        printf("%s", iQuery); \
        mysql_tquery(MysqlConnect, iQuery, %2, %3, %4)
//===========
MysqlQuery("SELECT name FROM bans WHERE ip = '%s'". GetName(playerid). "OnPlayerCheckBan". "ii". 0, playerid);
//==========
public OnPlayerCheckBan(type, playerid)
{
    if(cache_num_rows() != 0){
        SendClientMessage(playerid, 0xFF000098, "[BANIDO] O teu ip encontra-se banido. Podes obter mais informaзхes criando um tуpico em www.Tuga-Revolution.com");
        KickEx(playerid);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Mysql - by VeNuZ_ - 06.10.2014, 17:24
Re: Mysql - by Deeh16 - 06.10.2014, 17:32
Re: Mysql - by VeNuZ_ - 06.10.2014, 18:00

Forum Jump:


Users browsing this thread: 1 Guest(s)