Well, i have a simple question. I can't test right now, for that reason i am posting here.
Code:
new g_iPlayers;
public client_connect(id)
{
g_iPlayers++;
DoSomething();
}
public client_disconnect(id)
{
g_iPlayers--;
DoSomething();
}
public DoSomething()
{
if(g_iPlayers > 5)
{
// some code here
}
else
{
// some code here
}
}
I want to know if this method is correct or i have to add something to fix bugs, or something like that.
__________________