Jump to content

[REZOLVAT] Intrebare Level UP


iPanter
 Share

Recommended Posts

Cum pot face sa imi dea lvl up? Cand deschid un crate si imi pica lvl up imi seateaza lvl 2 de fiecare data.

 

 

 

            case 15..20:
            {
             amount = 1;
                if( CrateType[ c ] == 1 ) { amount = 1; }
                format( string, sizeof string, "Step: %d/30~n~~r~%s Level Up", 30 - CrateTime[ c ], FormatNumber( amount ) );
                PlayerTextDrawSetString( c, CrateTD[ 4 ], string );
                if( CrateTime[ c ] == 0 )
                {
PlayerInfo[ c ][ pLevel ] = amount + 1;
Update( c, pLevelx );
SetPlayerScore( c,PlayerInfo[ c ][ pLevel ] );
UpdateProgress( c, 0 );
                    format(string, sizeof(string), "Crates: {FFFFFF}You won: %s Level UP!", FormatNumber( amount ) );
                    SendClientMessage(c, COLOR_RED, string);
                    CrateOpen[ c ] = 0;
                    SetTimerEx( "hideCrateTextdraws", 2000, 0, "d", c );
}
            }
Edited by iPanter
Link to comment
Share on other sites

  • Administrator

Iti seteaza level 2 deoarece au ai pus amount + 1...

 

Poftim:

case 15..20:
{
	format( string, sizeof string, "Step: %d/30~n~~r~1 Level Up", 30 - CrateTime[ c ]);
	PlayerTextDrawSetString( c, CrateTD[ 4 ], string );
	if( CrateTime[ c ] == 0 )
	{
		PlayerInfo[ c ][ pLevel ] = 1;
		Update( c, pLevelx );

		SetPlayerScore( c,PlayerInfo[ c ][ pLevel ] );
		UpdateProgress( c, 0 );

		format(string, sizeof(string), "Crates: {FFFFFF}You won: 1 Level UP!");
		SendClientMessage(c, COLOR_RED, string);
		
		CrateOpen[ c ] = 0;
		SetTimerEx( "hideCrateTextdraws", 2000, 0, "d", c );
	}
}

Nu mereu trebuie sa te folosesti de FormatNumber, sau de alte variabile.  :fericit:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...