Raised This Month: $ Target: $400
 0% 

Can you pass a string to a function like this?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 04-20-2006 , 01:27  
Reply With Quote #9

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 ??
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
 



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 16:42.


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