Raised This Month: $ Target: $400
 0% 

FM_Think


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
@.SizNeR
Member
Join Date: Jun 2013
Old 08-21-2013 , 19:32   Re: FM_Think
Reply With Quote #1

Quote:
Originally Posted by Black Rose View Post
... what are you doing? It's working fine.
Code:
L 08/22/2013 - 01:12:11: "Black Rose<53><STEAM_0:1:-snip-><>" joined team "TERRORIST"
L 08/22/2013 - 01:12:12: [test7.amxx] On My Public.
I change a little the code and its always printing me the same message.

Code:
Code:
public FwFirstThink( iEntity ) {       static szClassname[ 32 ];         pev( iEntity, pev_classname, szClassname, charsmax( szClassname ) );         server_print( "On think." );         if( !equali( szClassname, g_szFirstClass ) )     {         set_think( g_iFirstEnt, 1.0 );                 server_print( "Updating next time. [1]" );                 return 1;     }         if( g_bActive )     {         set_think( iEntity, 1.0 );                 server_print( "Updating next time. [2]" );                 return 1;     }         new players[ 32 ], pnum;         new tCount, ctCount;         get_players( players, pnum, "c" );         for( new i = 0; i < pnum; i++ )     {         if( !is_user_connected( players[ i ] ) )             continue;                 switch( cs_get_user_team( players[ i ] ) )         {             case CS_TEAM_T:                 tCount++;                         case CS_TEAM_CT:                 ctCount++;         }     }         if ( ( tCount <= 1 && ctCount >= 0 ) || ( tCount / ctCount > 5 ) && !g_bActive )     {         server_print( "Starting First" );                 g_bActive = true;             g_iCountdown = 5;             set_task( 1.0, "CmdFirstCountdown", g_iCountdownTask, _, _, "b" );     }     set_think( iEntity, 1.0 );         server_print( "Updating next time. [3]" );         return 1; }

Message:
PHP Code:
On think.
Updating next time. [1
Thanks for help.

Last edited by @.SizNeR; 08-21-2013 at 19:32.
@.SizNeR is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode