Sa fonctionne
PHP Code:
#include <sdktools>
#pragma newdecls required
#define pourcent '%'
public Action OnClientPreAdminCheck(int client)
{
CreateTimer(5.0, timer, client, TIMER_REPEAT);
}
public Action timer(Handle timer, any client)
{
char sText[64];
Format(sText, sizeof(sText), "5 %s", pourcent);
PrintToChatAll(sText);
Menu menu = new Menu(Menu_Test);
menu.SetTitle("titre");
menu.AddItem("", sText);
menu.ExitButton = true;
menu.Display(client, 0);
}
public int Menu_Test(Menu menu, MenuAction action, int client, int 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