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

[mapsmenu.sma] Plugin did not format a string correctly


  
 
 
Thread Tools Display Modes
Author Message
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 09-18-2004 , 09:44   [mapsmenu.sma] Plugin did not format a string correctly
#1

win32 040918 nightly

The error:
Code:
L 09/18/2004 - 13:49:44: [AMXX] Plugin did not format a string correctly (parameter 7 (total 6), line 365, "mapsmenu.amxx")
L 09/18/2004 - 13:49:44: [AMXX] Plugin did not format a string correctly (parameter 7 (total 6), line 365, "mapsmenu.amxx")
L 09/18/2004 - 13:49:44: [AMXX] Plugin did not format a string correctly (parameter 7 (total 6), line 365, "mapsmenu.amxx")
That happens when an admin changes level. and amx_show_activity 1

The error is a small typo (line 365 mapsmenu.sma):
Code:
        case 1: client_print(0,print_chat,"%L",LANG_PLAYER,"ADMIN_CHANGEL_2",g_mapName[  a  ])
Should be
Code:
        case 1: client_print(0,print_chat,"%L",LANG_PLAYER,"ADMIN_CHANGEL_1",g_mapName[  a  ])
This error can only be reproduced if amx_show_activity 1
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
Melt284
Member
Join Date: Aug 2004
Old 09-18-2004 , 13:35  
#2

Win32
amxmodx-0.20-20040918

This also happens if you use the "amx_langmenu" command with client langages turned off:
Quote:
L 09/18/2004 - 130:26: [AMXX] Plugin did not format a string correctly (parameter 5 (total 4), line 204, "multilingual.amxx")
L 09/18/2004 - 130:26: [AMXX] Plugin did not format a string correctly (parameter 5 (total 4), line 204, "multilingual.amxx")
I did not have debug turned on so the line numbers are probably incorrect.
Melt284 is offline
BAILOPAN
Join Date: Jan 2004
Old 09-18-2004 , 13:36  
#3

There is a new windows build out as of tonight, could you try it?
__________________
egg
BAILOPAN is offline
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 09-18-2004 , 14:16  
#4

Quote:
Originally Posted by BAILOPAN
There is a new windows build out as of tonight, could you try it?
BAILOPAN was that for me or ??
Because I use the win32 040918 nightly.
I know I should have posted that in the bugreport.

My error occour because in mapmenu.txt there are 2 %s in the string ADMIN_CHANGEL_2.
And if you have amx_show_activity 1 it want to run the line(case 1) and thats why the error happens.
Hope I make some sence with my explanation.
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
BAILOPAN
Join Date: Jan 2004
Old 09-18-2004 , 20:39  
#5

Fixed, thanks

In the future please give correct line numbers
__________________
egg
BAILOPAN 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 09:24.


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