12.06.2013, 20:02
Hi,
I want to ask, i have like that:
When i use this in my code, like in command
new ALLPLAYERS = ReturnUserCount( );
Does, returnusercount will be called, or i have to use ALLPLAYERS in anywhere, then all scripts in that stock will be called?
I want to ask, i have like that:
Код:
new ALLPLAYERS = ReturnUserCount( );
Код:
stock ReturnUserCount() { mysql_free_result( ); mysql_query("SELECT Vardas FROM players"); mysql_store_result(); new users = mysql_num_rows(); mysql_free_result(); return users; }
new ALLPLAYERS = ReturnUserCount( );
Does, returnusercount will be called, or i have to use ALLPLAYERS in anywhere, then all scripts in that stock will be called?