Help with function
#3

Quote:
Originally Posted by famas.[FTW]
Посмотреть сообщение
This should work:

pawn Код:
stock IsPlayerBanned(playerid)
{
    new queue[16];
    format(queue, sizeof(queue), "SELECT * FROM `PlayerBans` WHERE IP='%s'", PlayerIP(playerid)); //It should me something like: If the PlayerName/IP is in the "PlayerBans" data base then he is banned...
    mysql_query(queue);
    mysql_store_result();
    if(mysql_num_rows())
    {
        mysql_free_result();
        return 1;
    }
    mysql_free_result();
    return 0;
}
Thnaks
Reply


Messages In This Thread
Help with function - by Unknown123 - 05.03.2011, 16:13
Re: Help with function - by famas.[FTW] - 05.03.2011, 16:48
Re: Help with function - by Unknown123 - 05.03.2011, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)