Raised This Month: $12 Target: $400
 3% 

Frag Mod


Post New Thread Reply   
 
Thread Tools Display Modes
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-13-2006 , 03:22   Re: Frag Mod
Reply With Quote #11

Added multilingual support. Post your translations here
mateo10 is offline
godlike
Senior Member
Join Date: Apr 2005
Old 12-13-2006 , 07:40   Re: Frag Mod
Reply With Quote #12

Here you go in dutch :


[nl]
ALREADY_ROLLING = Er is al een frag gerolt deze ronde. Probeer volgende ronde opnieuw
CONGRAT_+1FRAG = Gefeliciteerd! Je won 1 frag
CONGRAT_+2FRAGS = Gefeliciteerd! Je won 2 frags
CONGRAT_DOUBLEFRAGS = Gefeliciteerd! Je frags zijn verdubbelt
HAHA_LOST1FRAG = Ha Ha! Je verloor 1 frag
HAHA_LOST2FRAGS = Ha Ha! Je verloor 2 frags
HAHA_FRAGSGONE = Ha Ha! Je frags zijn weg
CANT_SELL_MORE = Je kan niet meer dan %d frags per ronde verkopen
CANT_BUY_MORE = Je kan niet meer dan %d frags per ronde kopen
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-13-2006 , 07:45   Re: Frag Mod
Reply With Quote #13

Thanks
Will add it
mateo10 is offline
godlike
Senior Member
Join Date: Apr 2005
Old 12-13-2006 , 07:47   Re: Frag Mod
Reply With Quote #14

No problem.
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
godlike
Senior Member
Join Date: Apr 2005
Old 12-13-2006 , 07:58   Re: Frag Mod
Reply With Quote #15

The fragmod.sma goes to .\amxmodx\scripting\

if think you mean this :

The fragmod.amxx goes to .\amxmodx\plugins\
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-13-2006 , 08:02   Re: Frag Mod
Reply With Quote #16

Ooops, changing...
mateo10 is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-13-2006 , 10:04   Re: Frag Mod
Reply With Quote #17

1.
The location of fragmod.sma is immaterial to anything unless you're compiling it locally, and even then, it's not guaranteed that it'll be the user's scripting folder.

2.
While it's okay to request translations in the actual plugin thread, there's a board specifically created to handle these things.

3.
Code:
    g_switch = register_cvar("fragmod", "1")     sellfrags_max = register_cvar("fm_sellfrags_max", "5")
All your CVARs should start with the same prefix.

I would suggest changing fragmod to something like fm_enable so that it shares the same CVAR prefix as the rest of your CVARs.

4.
Code:
    if(FragsSold==get_pcvar_num(sellfrags_max)) {         client_print(id, print_chat, "%L", "CANT_SELL_MORE", get_pcvar_num(sellfrags_max))         return PLUGIN_HANDLED     }
If you are calling a function more than once, you should store the value from the first function call and then use that value in the place of subsequent function calls. In the case of the function being pretty light like get_pcvar_num(), the speed savings isn't great, but doing so is still good programming practice.

5.
Code:
    g_switch = register_cvar("fragmod", "1")     sellfrags_max = register_cvar("fm_sellfrags_max", "5")     buyfrags_max = register_cvar("fm_buyfrags_max", "5")     g_fragearn = register_cvar("fm_sellfragcost", "4000")     g_fragcost = register_cvar("fm_buyfragcost", "6000")
This isn't critical for approval but it is still worthy of being pointed out. Good programming practice dictates that you should maintain some sort of consistency in the name of your variables. In this case, it would be enough to just change sellfrags_max to g_sellfrags_max and buyfrags_max to g_buyfrags_max.
__________________
Brad is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-13-2006 , 10:24   Re: Frag Mod
Reply With Quote #18

Everything Fixed.
mateo10 is offline
.:Predator:.
Member
Join Date: May 2006
Location: Sweden
Old 12-13-2006 , 11:52   Re: Frag Mod
Reply With Quote #19

maybe im wrong but in the lang file, shouldnt the swedish version be [sv] not [se]??
__________________

[IMG]http://img294.**************/img294/3981/johan2kn1.gif[/IMG]
.:Predator:. is offline
Send a message via MSN to .:Predator:.
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-13-2006 , 12:53   Re: Frag Mod
Reply With Quote #20

Oops you're right. My mistake. I'll fix it now
mateo10 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 03:08.


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