Accounts registered textdraw help!
#8

Sorry for 3x post,but it's important!
Where shall I put that code?
pawn Код:
mysql_tquery(connectionHandle, "SELECT (SELECT COUNT(*) FROM `users`) AS `user_count`, (SELECT COUNT(*) FROM `bans`) AS `ban_count`", "mysql_GetServerStats", "");

public mysql_GetServerStats()
{
    if(cache_get_row_count())
    {
        new users = cache_get_field_content_int(0, "user_count");
        new bans = cache_get_field_content_int(0, "ban_count");
       
        new td_string[64];
        format(td_string, sizeof(td_string), "Registered users: %d~n~Bans: %d", user_count, ban_count);
        TextDrawSetString(textdraw_id, td_string);
    }
    return 1;
}
Reply


Messages In This Thread
Accounts registered textdraw help! - by nhunor58 - 29.12.2013, 14:35
Re: Accounts registered textdraw help! - by SilentSoul - 29.12.2013, 16:04
Re: Accounts registered textdraw help! - by nhunor58 - 29.12.2013, 16:36
Re: Accounts registered textdraw help! - by nhunor58 - 29.12.2013, 19:37
Re: Accounts registered textdraw help! - by Johnson_boy - 29.12.2013, 20:05
Re: Accounts registered textdraw help! - by nhunor58 - 30.12.2013, 06:28
Re: Accounts registered textdraw help! - by nhunor58 - 30.12.2013, 14:42
Re: Accounts registered textdraw help! - by nhunor58 - 30.12.2013, 19:38

Forum Jump:


Users browsing this thread: 1 Guest(s)