AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Multi-Lingual File Error (https://forums.alliedmods.net/showthread.php?t=76634)

Exolent[jNr] 08-27-2008 17:13

Multi-Lingual File Error
 
I'm currently updating my Entity Remover plugin, but my multi-lingual file has an error.

Here is the file:
Code:

[en]
CANNOT_REMOVE_PLAYER = [ER] You cannot remove a player!
CANNOT_RESTORE_PLAYER = [ER] You cannot restore a player!
AIM_AT_ENTITY = [ER] You must aim at an entity first!
ENTITY_REMOVED = [ER] Entity removed!
ENTITY_RESTORED = [ER] Entity restored!
RESET_ENTITIES = [ER] All removed entities have been reset!
ENTITY_ALREADY_REMOVED = [ER] This entity is already removed!
ENTITY_NOT_REMOVED = [ER] This entity has not been removed!
SOMEONE_ALREADY_REMOVING = [ER] Someone is already removing entities!
SOMEONE_ALREADY_RESTORING = [ER] Someone is already restoring entities!
MENU_TITLE = Entity Remove Menu
MENU_FIND_REMOVE_NO_COLOR = Find Entity To Remove
MENU_FIND_REMOVE_COLOR = Find Entity To \rRemove
MENU_FIND_RESTORE_NO_COLOR = Find Entity To Restore
MENU_FIND_RESTORE_COLOR = Find Entity To \yRestore
MENU_FIND_NEXT_ENTITY = Find Next Entity
MENU_REMOVE_ENTITY_COLOR = \rRemove \wEntity \r[\y%s\r][\y%i\r]
MENU_REMOVE_ENTITY_NO_COLOR = Remove Entity
MENU_RESTORE_ENTITY_COLOR = \yRestore \wEntity \r[\y%s\r][\y%i\r]
MENU_RESTORE_ENTITY_NO_COLOR = Restore Entity
MENU_SETTING_REMOVE = Setting: \rRemove
MENU_SETTING_RESTORE = Setting: \rRestore
MENU_NO_REMOVE = [ER] Could not find entity to remove!
MENU_NO_RESTORE = [ER] There are no entities to restore!

Here is the error:
Code:

L 08/27/2008 - 16:03:50: Invalid multi-lingual line (file "cstrike\addons\amxmodx\data\lang\entity_remover.txt" line 1)
This error is displayed in my console upon server start and changing maps.

I have the latest version of AMXX (1.8.1).

I don't see anything wrong with my file. I even tried adding a few other languages, with random words because I don't know other languages enough to translate. And it still doesn't work.

In game, every time a ML message should be shown, I get ML_NOTFOUND error.

Screenshot

Arkshine 08-27-2008 17:22

Re: Multi-Lingual File Error
 
I'm pretty sure that you have tried to register this file as UTF8.

You must register the file as UTF8 Without BOM. ( Byte Order Mark ). Because of this mark, the ML system cries.

Exolent[jNr] 08-27-2008 17:27

Re: Multi-Lingual File Error
 
How do I do that? Because that is not an option in my notepad.

Screenshot

Arkshine 08-27-2008 17:28

Re: Multi-Lingual File Error
 
Use Notepad++ ; really a good editor.

Exolent[jNr] 08-27-2008 20:16

Re: Multi-Lingual File Error
 
Thanks arkshine. I got it to work, but now I broke my code.
I can't figure out why it won't work :grrr:

I'll keep testing to see where I went wrong.


All times are GMT -4. The time now is 03:05.

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