View Single Post
Icetea16
Member
Join Date: Jul 2015
Location: France
Old 07-21-2015 , 09:45   Re: % in string text
Reply With Quote #5

Sa fonctionne

PHP Code:
#include <sdktools>

#pragma newdecls required

#define pourcent '%'

public Action OnClientPreAdminCheck(int client)
{
    
CreateTimer(5.0timerclientTIMER_REPEAT);
}

public 
Action timer(Handle timerany client)
{
    
char sText[64];
    
Format(sTextsizeof(sText), "5 %s"pourcent);
    
PrintToChatAll(sText);
    
    
Menu menu = new Menu(Menu_Test);
    
menu.SetTitle("titre");
    
menu.AddItem(""sText);
    
menu.ExitButton true;
    
menu.Display(client0);
}

public 
int Menu_Test(Menu menuMenuAction actionint clientint item)
{
    if (
action == MenuAction_Select)
    {
        
delete menu;
    }
    else if (
action == MenuAction_End)
    {
        
delete menu;
    }

Screenshot:

http://www.noelshack.com/2015-30-143...7-21-00002.jpg
Attached Images
File Type: jpeg bloggif_55ae4ce39e29d.jpeg (15.8 KB, 156 views)
__________________
I'm French, sorry for my bad english...

Last edited by Icetea16; 07-21-2015 at 09:47.
Icetea16 is offline