AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Formating text with paramater (https://forums.alliedmods.net/showthread.php?t=189312)

hh2 07-05-2012 19:03

Formating text with paramater
 
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 :crab:

Bugsy 07-05-2012 19:10

Re: Formating text with paramater
 
PHP Code:

formatextext charsmax(text) , g_buffer] , int ); 


hh2 07-05-2012 19:59

Re: Formating text with paramater
 
I dont think that the solution is that easy.
Worked, thanks for help Bugsy.


All times are GMT -4. The time now is 15:22.

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