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

[AMXMODX.INC] Compiling Warning


  
 
 
Thread Tools Display Modes
Author Message
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 09-20-2004 , 22:55   [AMXMODX.INC] Compiling Warning
#1

I get this warning when compiling this plugin, I believe it's a bug in the amxmodx.inc file but I'm not totally sure.
Here's the error:

//// emptyserver.sma
// Z:\HLS2\cstrike\addons\amxmodx\scripting\incl ude\amxmodx.inc(40) : warning 219: local variable "map" shadows a variable at a preceding level
//
// 1 Warning.
// Done.
//
// Compilation Time: 1.61 sec
// ----------------------------------------

Here's the line in that include file giving the warning:

/* Function called to handle changelevel */
forward server_changelevel(map[]);

This existed in all versions of AMXX 0.20 including RC6.

I included the plugin that gives this warning.
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 09-21-2004 , 07:46  
#2

just change map to something else like mymap in your plugin
this should solve the problem
__________________
alias White Panther
karlos is offline
BAILOPAN
Join Date: Jan 2004
Old 09-21-2004 , 11:45  
#3

I have fixed this by changing the variable name to "MapName" in amxmodx.inc ;]

Less people will be using that
__________________
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 22:34.


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