06.10.2010, 15:48
Meh, this is only fixable like this:
and add at top:
Should work then.
pawn Код:
//===========================[TextDraw creating]===========================================
//===========================[CREDITS: Ellis / FanKurT]===========================================
stock ShowInfoText( playerid, text[ ], time, sound = true )
{
// Funkcija: ShowInfoText( playerid, text[ ] )
// Parodys юaidлjui kvadratukа, su informacija
if ( InfoTextOn[ playerid ] == 0 )
{
InfoText[ playerid ] = CreateInfoText( text );
TextDrawShowForPlayer( playerid, InfoText[ playerid ] );
InfoText[ playerid ] = 1;
SetTimerEx ( "HideInfoText", time, false, "d", playerid );
}
if ( sound )
PlayerPlaySound( playerid, 1057, 0.0, 0.0, 0.0 );
}
public HideInfoText( playerid )
{
// Funkcija: HideInfoText( playerid )
// Paslлps info tekstа юaidлjui
if ( InfoTextOn[ playerid ] == 1 )
{
TextDrawHideForPlayer( playerid, InfoText[ playerid ] );
TextDrawDestroy ( InfoText[ playerid ] );
InfoTextOn[ playerid ] = 0;
}
return true;
}
pawn Код:
new InfoTextOn[MAX_PLAYERS];