Raised This Month: $ Target: $400
 0% 

a question about Lang file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jacob
Senior Member
Join Date: Oct 2010
Old 11-22-2010 , 00:49   a question about Lang file
Reply With Quote #1

new const g_RankName[][] =
{
"name1","name2","name3","name4","name5"
}
is it possible to load namei from LANG file or cfg file?
Jacob is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-22-2010 , 00:59   Re: a question about Lang file
Reply With Quote #2

http://wiki.amxmodx.org/Advanced_Scr...ingual_Support
__________________
fysiks is offline
Jacob
Senior Member
Join Date: Oct 2010
Old 11-22-2010 , 01:20   Re: a question about Lang file
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
i mean to use LANG in variable.
eg:the code in plugin is like this
PHP Code:
new const g_RankName[][] =

"Newbie","Semi-Pro","Pro","Veteran"

if I want to use LANG file to load g_RankName,is it possible to achieve?
LANG file would be like this
[cn]
LEVELNAME1= Newbie
LEVELNAME2 = Semi-Pro
LEVELNAME3 = Pro
LEVELNAME4 = Veteran
Jacob is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 11-22-2010 , 01:48   Re: a question about Lang file
Reply With Quote #4

Code:
new const g_RankName[][] = 
{
  "LEVELNAME1",
  "LEVELNAME2",
  "LEVELNAME3",
  "LEVELNAME4"
}
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Jacob
Senior Member
Join Date: Oct 2010
Old 11-22-2010 , 02:10   Re: a question about Lang file
Reply With Quote #5

Quote:
Originally Posted by K.K.Lv View Post
Code:
new const g_RankName[][] = 
{
 "LEVELNAME1",
 "LEVELNAME2",
 "LEVELNAME3",
 "LEVELNAME4"
}
if do like this,g_RankName1 will be LEVELNAME1 but not Newbie.
Jacob is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2010 , 03:17   Re: a question about Lang file
Reply With Quote #6

Quote:
Originally Posted by Jacob View Post
no code,i just thought of this question by chance.
Then why did you ask this question:

Quote:
Originally Posted by Jacob View Post
if do like this,g_RankName1 will be LEVELNAME1 but not Newbie.
You didn't even test before asking.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Jacob
Senior Member
Join Date: Oct 2010
Old 11-22-2010 , 05:14   Re: a question about Lang file
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
Then why did you ask this question:



You didn't even test before asking.
sorry, this plugin is here,made by bugsy http://forums.alliedmods.net/showthr...=121138&page=3
@2:i'm pretty sure i tested before every asking!

Last edited by Jacob; 11-22-2010 at 05:19.
Jacob is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 11-22-2010 , 02:12   Re: a question about Lang file
Reply With Quote #8

show your full code !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Jacob
Senior Member
Join Date: Oct 2010
Old 11-22-2010 , 02:49   Re: a question about Lang file
Reply With Quote #9

Quote:
Originally Posted by K.K.Lv View Post
show your full code !
no code,i just thought of this question by chance.
Jacob is offline
Reply



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 11:22.


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