AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   language problem (https://forums.alliedmods.net/showthread.php?t=101706)

addicted2sex 08-26-2009 10:20

language problem
 
how can i get the strings ON and OFF from a language file format(tmp,9."%s" ,get_cvar_num (secure) ? ON:OFF)

Arkshine 08-26-2009 10:30

Re: language problem
 
Code:
formatex( tmp, charsmax( tmp ), "%L", id, get_pcvar_num(secure) ? "ON" : "OFF" );

Then add in plugin_init() :
Code:
 register_dictionary( "common.txt" );


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

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