Guys I'm getting total garbage...
This is how I call it:
Code:
WC3_Status_Text( id, 3.5, HUDMESSAGE_POS_INFO, "%L", id, "SERPENT_WARD", p_data[id][P_SERPENTCOUNT] );
This is the function:
Code:
// Function will print a message in the center of the screen
WC3_Status_Text( id, Float:fDuration, Float:iYPos, const text[] = "", {Float,_}:... )
{
new szFormattedText[128];
format_args( szFormattedText, 127, 3 );
// Check for Counter-Strike or Condition Zero
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
{
set_hudmessage( 255, 208, 0, HUDMESSAGE_POS_CENTER, iYPos, 0, 6.0, fDuration, 0.1, 0.5, -1 );
show_hudmessage( id, szFormattedText );
}
// Check for Day of Defeat
else if ( g_MOD == GAME_DOD )
{
Create_HudText( id, szFormattedText, 1 );
}
// Gets rid of compiler warning
if ( text[0] == 0 )
{
return;
}
}
Can I not do the %L stuff w/format_args ??
__________________