Raised This Month: $51 Target: $400
 12% 

Formating text with paramater


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 07-05-2012 , 19:03   Formating text with paramater
Reply With Quote #1

Hi !

I have this code:
Code:
new g_buffer[2][] =
{
    "Test %d",
    "Test2 %d Test2" 
};
Now i have question: how formating '%d' in tables ? Its possible ?
I try this, but dont work:
Code:
formatex(text, charsmax(text), "%s", g_buffer[1], int);
Thanks for any help.
P.S Sory for my bad english

Last edited by hh2; 07-05-2012 at 19:08.
hh2 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-05-2012 , 19:10   Re: Formating text with paramater
Reply With Quote #2

PHP Code:
formatextext charsmax(text) , g_buffer] , int ); 
__________________
Bugsy is offline
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 07-05-2012 , 19:59   Re: Formating text with paramater
Reply With Quote #3

I dont think that the solution is that easy.
Worked, thanks for help Bugsy.
hh2 is offline
Reply



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 07:30.


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