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

Solved Help with compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 02-09-2017 , 08:48   Help with compiling
Reply With Quote #1

This is an advanced version of statsx shell plugin which I got from a friend. Can't compile it properly getting these errors:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "MAX_PLAYERS" on line 163
Error: Undefined symbol "MAX_PLAYERS" on line 171
Error: Undefined symbol "MAX_PLAYERS" on line 172
Error: Undefined symbol "MAX_PLAYERS" on line 173
Error: Undefined symbol "MAX_PLAYERS" on line 175
Error: Undefined symbol "MAX_PLAYERS" on line 177
Error: Undefined symbol "MAX_PLAYERS" on line 178
Error: Undefined symbol "MAX_PLAYERS" on line 179
Error: Undefined symbol "MAX_PLAYERS" on line 193
Error: Undefined symbol "MAX_PLAYERS" on line 194
Error: Undefined symbol "MAX_PLAYERS" on line 195
Error: Invalid array size (negative or zero) on line 196
Error: Invalid array size (negative or zero) on line 197
Error: Undefined symbol "MAX_PLAYERS" on line 198
Error: Undefined symbol "MAX_NAME_LENGTH" on line 206
Error: Undefined symbol "MAX_NAME_LENGTH" on line 239
Warning: Loose indentation on line 311
Warning: Loose indentation on line 322
Warning: Loose indentation on line 801
Warning: Loose indentation on line 803
Warning: Loose indentation on line 885
Warning: Loose indentation on line 917
Warning: Symbol is assigned a value that is never used: "iHoldTime" on line 1029
Warning: Symbol is assigned a value that is never used: "iFadeOut" on line 1029
Warning: Symbol is assigned a value that is never used: "iFadeIn" on line 1029
Warning: Symbol is assigned a value that is never used: "g_iLastVisit" on line 1029
Warning: Symbol is assigned a value that is never used: "g_iLastPT" on line 1029
Error: Undefined symbol "MAX_NAME_LENGTH" on line 1138
Error: Undefined symbol "MAX_NAME_LENGTH" on line 1150
Error: Number of arguments does not match definition on line 1150
Error: Undefined symbol "MAX_NAME_LENGTH" on line 1202
Error: Number of arguments does not match definition on line 1202
Error: Undefined symbol "MAX_NAME_LENGTH" on line 1240
Error: Number of arguments does not match definition on line 1240
Error: Undefined symbol "MAX_PLAYERS" on line 1269
Error: Undefined symbol "MAX_PLAYERS" on line 1305
Error: Undefined symbol "MAX_NAME_LENGTH" on line 1392

Compilation aborted.
26 Errors.
Could not locate output file C:\Users\Mohsin\Desktop\statsx_shell.amx (compile failed).

I can fix the loose indentation error and can I define MAX_PLAYERS and MAX_NAME_LENGTH as #define MAX_PLAYERS 32
#define MAX_NAME_LENGTH 32 ??
Attached Files
File Type: sma Get Plugin or Get Source (statsx_shell.sma - 681 views - 125.8 KB)

Last edited by WhiteFang1319; 02-15-2017 at 00:12.
WhiteFang1319 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-09-2017 , 09:10   Re: Help with compiling
Reply With Quote #2

Remove #include <dhudmessage>.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 02-10-2017 , 06:16   Re: Help with compiling
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Remove #include <dhudmessage>.
I need it. He has said that I need dhud include if amx version is less than 1.8.3 . Btw this sma compiles with some errors in 1.8.3 but I can't in 1.8.2 . Any help?
WhiteFang1319 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-10-2017 , 07:57   Re: Help with compiling
Reply With Quote #4

Yeah, if you define them it will compile.
__________________
HamletEagle is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-10-2017 , 09:53   Re: Help with compiling
Reply With Quote #5

It compiles just fine on both. Ignore the indentation warnings - they have nothing to do with the plugin's functionallity.
__________________

Last edited by OciXCrom; 02-10-2017 at 09:53.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 02-11-2017 , 02:37   Re: Help with compiling
Reply With Quote #6

Okay I have defined them and now I'm getting these errors:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Warning: Loose indentation on line 319
Warning: Loose indentation on line 325
Warning: Loose indentation on line 804
Warning: Loose indentation on line 806
Warning: Loose indentation on line 888
Warning: Loose indentation on line 920
Error: Only a single statement (or expression) can follow each "case" on line 1030
Warning: Symbol is assigned a value that is never used: "iHoldTime" on line 1032
Warning: Symbol is assigned a value that is never used: "iFadeOut" on line 1032
Warning: Symbol is assigned a value that is never used: "iFadeIn" on line 1032
Warning: Symbol is assigned a value that is never used: "g_iLastVisit" on line 1032
Warning: Symbol is assigned a value that is never used: "g_iLastPT" on line 1032
Error: Start of function body without function header on line 1033
Error: Symbol already defined: "show_dhudmessage" on line 1035
Error: Invalid expression, assumed zero on line 1035
Error: Invalid expression, assumed zero on line 1035
Error: Too many error messages on one line on line 1035

Compilation aborted.
6 Errors.
Could not locate output file C:\Users\Mohsin\Desktop\statsx_shell.amx (compile failed).

I know about the indentation warnings but what should I do about the remaining warnings and errors?
WhiteFang1319 is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 02-11-2017 , 03:12   Re: Help with compiling
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
Yeah, if you define them it will compile.

So I had my friend help me with the plugin and he fixed those errors but I'm getting different errors now . Any help?

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Warning: Loose indentation on line 319
Warning: Loose indentation on line 325
Error: Undefined symbol "save_team_chatscore" on line 433
Error: Undefined symbol "get_config_cvars" on line 532
Warning: Loose indentation on line 804
Warning: Loose indentation on line 806
Warning: Loose indentation on line 888
Warning: Loose indentation on line 920
Warning: Loose indentation on line 1030
Error: Undefined symbol "set_hudtype_killer" on line 1039
Warning: Loose indentation on line 1040
Error: Undefined symbol "fDuration" on line 1040
Error: Undefined symbol "fDuration" on line 1040
Error: Invalid expression, assumed zero on line 1040
Error: Too many error messages on one line on line 1040
Attached Files
File Type: sma Get Plugin or Get Source (statsxshell.sma - 393 views - 126.0 KB)

Last edited by WhiteFang1319; 02-11-2017 at 03:37.
WhiteFang1319 is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 02-11-2017 , 18:49   Re: Help with compiling
Reply With Quote #8

use that
Attached Files
File Type: sma Get Plugin or Get Source (statsx_shell.sma - 631 views - 120.3 KB)
Godofwar is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 02-12-2017 , 05:40   Re: Help with compiling
Reply With Quote #9

Quote:
Originally Posted by Godofwar View Post
use that
Thanks but I know about this one. I'd be great if I could compile the one I have now.
WhiteFang1319 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 02-12-2017 , 06:30   Re: Help with compiling
Reply With Quote #10

Line 1028 - 1056
Spoiler


After that I removed all instances of colorChat(). I don't think they support ML.

Compiles with 13 warnings about symbols not used.
__________________
Black Rose 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 15:24.


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