#1

removed, thanks stinged
Reply
#2

PHP код:
new
    
query[42 TABLE NAME LENGTH HERE]; // Just replace the whole size by the actual size (add 42 + length by yourself)
mysql_format(handlequerysizeof (query), "SELECT COUNT(*) FROM `TABLE_NAME_HERE` WHERE `Gang` = %i"GANG_ID);
mysql_tquery(handlequery"getGangCount""ii"playeridGANG_ID);

// Outside of the callback
forward getGangCount(playeridgangid);
public 
getGangCount(playeridgangid)
{
    new
        
count;
    
cache_get_value_index_int(00count);
    if (
count == 100)
    {
        
// There are 100 players in that gang
    
}
    else
    {
        
// There are less than a 100 players, so the player can join
    
}

Reply
#3

thanks stinged
Reply
#4

PHP код:
mysql_tquery(handlequery"getGangCount""iii"playeridplayerGANG_ID);
// Outside of the callback
forward getGangCount(playeridplayergangid);
public 
getGangCount(playeridplayergangid
Reply
#5

Thank you so much.
Reply
#6

Fuck, I'm going to keep a list of ungrateful people who delete their post after having received the answer. This is a public forum, not your personal helpdesk. If you don't want to share your code, don't post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)