VIP sma wont compile
Hi i have a vip.sma but it wont compile can anyone help me please thank you!
vip.sma // C:\Users\***\addons\amxmodx\scripting\vip.sma (1) : error 010: invalid function or declaration // C:\Users\***\addons\amxmodx\scripting\vip.sma (26) : error 017: undefined symbol "get_configsdir" // C:\Users\***\addons\amxmodx\scripting\vip.sma (27) : error 017: undefined symbol "add" // C:\Users\***\addons\amxmodx\scripting\vip.sma (29) : error 017: undefined symbol "fopen" // C:\Users\***\addons\amxmodx\scripting\vip.sma (34) : error 017: undefined symbol "feof" // C:\Users\***\addons\amxmodx\scripting\vip.sma (36) : error 017: undefined symbol "fgets" // C:\Users\***\addons\amxmodx\scripting\vip.sma (37) : error 017: undefined symbol "trim" // C:\Users\***\addons\amxmodx\scripting\vip.sma (40) : error 017: undefined symbol "parse" // C:\Users\***\addons\amxmodx\scripting\vip.sma (42) : error 017: undefined symbol "ArrayPushString" // C:\Users\***\addons\amxmodx\scripting\vip.sma (43) : error 017: undefined symbol "ArrayPushString" // C:\Users\***\addons\amxmodx\scripting\vip.sma (44) : error 017: undefined symbol "ArrayPushString" // C:\Users\***\addons\amxmodx\scripting\vip.sma (47) : error 017: undefined symbol "fclose" // C:\Users\***\addons\amxmodx\scripting\vip.sma (50) : error 017: undefined symbol "get_maxplayers" // C:\Users\***\addons\amxmodx\scripting\vip.sma (52) : error 017: undefined symbol "register_cvar" // C:\Users\***\addons\amxmodx\scripting\vip.sma (53) : error 017: undefined symbol "register_cvar" // C:\Users\***\addons\amxmodx\scripting\vip.sma (55) : error 017: undefined symbol "register_forward" // C:\Users\***\addons\amxmodx\scripting\vip.sma (55) : warning 215: expression has no effect // C:\Users\***\addons\amxmodx\scripting\vip.sma (55) : error 001: expected token: ";", but found ")" // C:\Users\***\addons\amxmodx\scripting\vip.sma (55) : error 029: invalid expression, assumed zero // C:\Users\***\addons\amxmodx\scripting\vip.sma (55) : fatal error 107: too many error messages on one line // // Compilation aborted. // 19 Errors. // Could not locate output file C:\Users\***\addons\amxmodx\scripting\compile d\vip.amx (compile failed). |
Re: VIP sma wont compile
How do we help if we don't see the code? If you don't have an obvious mistake on the first line, I'm assuming the file's enconding is not supported by the compiler.
|
Re: VIP sma wont compile
Quote:
From error code you gave us I found that you need this includes: Code:
amxmisc.inc |
Re: VIP sma wont compile
@supertrio17 ‐ you're still quoting the first post for no reason.
An error on line 1 doesn't suggest that includes are missing. Also, file, string and cellarray are all included in amxmodx, so there is ni point in including them manually. |
Re: VIP sma wont compile
Hm, I was searching a bit and that error on line 1 was due to inproper decoder. So you are probably using unicode, but for some characters and symbols you need ANSI.
But still, we can't know anything without your sma file. |
Re: VIP sma wont compile
1 Attachment(s)
here is the sma
|
Re: VIP sma wont compile
Like I said - the problem is in the file's enconding. Change it to ANSI or just transfer the code into a .sma file that's working.
|
Re: VIP sma wont compile
Quote:
|
Re: VIP sma wont compile
That means you are missing that include file. Find it and put it in your 'include' folder.
|
Re: VIP sma wont compile
Quote:
|
All times are GMT -4. The time now is 06:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.