Raised This Month: $ Target: $400
 0% 

[New style menu] +1 will appear [}]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 07-22-2013 , 15:16   Re: [New style menu] +1 will appear [}]
Reply With Quote #6

I thought that ML coding was supposed to be this way:
Code:
formatex(str, charsmax(str), "%L", id, "LANG_KEY", 1);
Code:
LANG_KEY = \wblah blah +%d
Am I incorrect?
Statement from AMXx documentation i believe:
1. "%L" tells the string formatter to start a language translation. "%L" must always occur by itself like it is here.

Will it display the same result in a console window instead of an ingame menu?



I can't reproduce the problem.
Here's my code and result:
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Test Plugin 9", "1.0", "Black Rose");     register_dictionary("test9.txt") } public client_connect(id) {     set_task(3.0, "testfunc", id); } public testfunc(id) {     new b[1024];     new m = menu_create("Testmenu", "handler", 0);     formatex(b, charsmax(b), "\w%L +1", id, "color_costomadd1");     menu_additem(m, b, "30");     menu_display(id, m); } public handler() { }

Code:
[en]
color_costomadd1 = Red


What are you doing differently?

Last edited by Black Rose; 07-22-2013 at 15:45.
Black Rose is offline
 



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 06:26.


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