Timer Does not work..
#1

Hey, I do not understand why I do not work timers

Код:
SetTimerEx( "Kompiuterio_Krovimas" ,9000 , false,  "i" , playerid );
Код:
public Kompiuterio_Krovimas( playerid )
{
//------------------------------------------------------
	print("Aktyvuota Funkcija: Kompiuterio_Krovimas");
//------------------------------------------------------
	new
	    Kraunama
	;

	if( PlayerData[ playerid ][ Komputeris_Samsung ] )
	{
        Kraunama  = floatround( ( 50 / 5 ) + random( 2 ) );
	}
	if( PlayerData[ playerid ][ Kompiuteris_Dell_Inspiron ] )
	{
        Kraunama  = floatround( ( 50 / 5 ) + random( 7 ) );
	}
	if( PlayerData[ playerid ][ Kompiuteris_Toshiba_Satellite ] )
	{
        Kraunama  = floatround( ( 50 / 5 ) + random( 10 ) );
	}
	if( PlayerData[ playerid ][ Kompiuteris_HP_Mini ] )
	{
        Kraunama  = floatround( ( 50 / 5 ) + random( 14 ) );
	}

    PlayerData[ playerid ][ Kompiuterio_Baterija ]+= Kraunama;
    
    if( PlayerData[ playerid ][ Kompiuterio_Baterija ] > 100 )  //100 procentų baterijos
    {
        SendClientMessage( playerid,COLOR_BALTA, " "HEX_RAUDONA"- "HEX_BALTA"Jūsų kompiuteris pilnai pakrautas" );
    }
    return true;
}
Reply


Messages In This Thread
Timer Does not work.. - by RenisiL - 03.04.2011, 14:54
Re: Timer Does not work.. - by RenisiL - 03.04.2011, 17:00
Re: Timer Does not work.. - by SlashPT - 03.04.2011, 17:02
Re: Timer Does not work.. - by RenisiL - 03.04.2011, 17:07
Re: Timer Does not work.. - by Marricio - 03.04.2011, 17:08
Re: Timer Does not work.. - by RenisiL - 03.04.2011, 17:11
Re: Timer Does not work.. - by iJumbo - 03.04.2011, 17:12
Re: Timer Does not work.. - by RenisiL - 03.04.2011, 17:20
Re: Timer Does not work.. - by SlashPT - 03.04.2011, 17:21
Re: Timer Does not work.. - by RenisiL - 03.04.2011, 17:25
Re: Timer Does not work.. - by RenisiL - 03.04.2011, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)