I must ask you do you have any idea of what you are doing and why should it be done like that ?
This is one way of doing it.
PHP Code:
public IncreaseNumber()
{
for(new id=0; id<get_maxplayers(); id++)
{
if(is_user_connected(id) )
g_Number[id] += 10
}
}