Raised This Month: $32 Target: $400
 8% 

Advertisement System v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
luciaus18
Senior Member
Join Date: Dec 2014
Old 08-26-2022 , 11:21   Re: Advertisement System v1.2
Reply With Quote #21

My server version is Amxmodx 1.8.2. I tried to compile the plugin but it says that:

Code:
//// amx_ads.sma
// \HLDS\cstrike\addons\amxmodx\amx_ads.sma(79) : error 088: number of arguments does not match definition
// HLDS\cstrike\addons\amxmodx\\amx_ads.sma(320) : error 017: undefined symbol "set_dhudmessage"
// HLDS\cstrike\addons\amxmodx\\amx_ads.sma(321) : error 017: undefined symbol "show_dhudmessage"
//
// 3 Errors.
// Could not locate output file compiled\amx_ads.amx (compile failed).

Last edited by luciaus18; 08-26-2022 at 11:46.
luciaus18 is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 08-26-2022 , 20:02   Re: Advertisement System v1.2
Reply With Quote #22

Quote:
Originally Posted by luciaus18 View Post
My server version is Amxmodx 1.8.2. I tried to compile the plugin but it says that:

Code:
//// amx_ads.sma
// \HLDS\cstrike\addons\amxmodx\amx_ads.sma(79) : error 088: number of arguments does not match definition
// HLDS\cstrike\addons\amxmodx\\amx_ads.sma(320) : error 017: undefined symbol "set_dhudmessage"
// HLDS\cstrike\addons\amxmodx\\amx_ads.sma(321) : error 017: undefined symbol "show_dhudmessage"
//
// 3 Errors.
// Could not locate output file compiled\amx_ads.amx (compile failed).



https://forums.alliedmods.net/showthread.php?t=149210
download dhud_message.inc and put it in scripting/include, then at the beginning of the script add #include <dhudmessage>

as for the line 79.. idk why you're having an issue with that... nothing changed between 1.8.2 and 1.10.

1.8.2 file.inc
PHP Code:
/* Reads line from file. Returns index of next line or 0 when end of file is reached. */
native read_file(const file[],line,text[],len,&txtlen); 
1.10 file.inc
PHP Code:
native read_file(const file[], linetext[], len, &txtlen 0);
/* Reads line from file. Returns index of next line or 0 when end of file is reached. */ 
line 79
PHP Code:
    for(new i=0;i<get_file_lines(ads_path);i++)
    {
        
read_fileads_pathiads[ads_count], charsmax(ads) ) // line 79.. looks alright I guess?
        
ads_count++
    } 

Dude... just UPDATEEEEEEEE why are you still on 1.8.2.
__________________
deprale is offline
luciaus18
Senior Member
Join Date: Dec 2014
Old 08-27-2022 , 03:01   Re: Advertisement System v1.2
Reply With Quote #23

Well thx mate. I had the include file but not the line.

I still get that..yes..:
Code:
// \HLDS\cstrike\addons\amxmodx\amx_ads.sma(79) : error 088: number of arguments does not match definition
I didn't change my amxmodx version because I have some plugins that have some bugs if I put another version. I think the server it's more stable with this version.

Any idea how to fix that?

Last edited by luciaus18; 08-28-2022 at 09:28.
luciaus18 is offline
kooomax
Member
Join Date: Jan 2018
Old 01-04-2023 , 20:51   Re: Advertisement System v1.2
Reply With Quote #24

It would be great if someone added a function @discord~Server Discord: https://example.cm
If someone writes in discord. this advertisement will appear
kooomax is offline
ChillerX
Member
Join Date: Dec 2022
Old 01-04-2023 , 23:36   Re: Advertisement System v1.2
Reply With Quote #25

Will test it tomorrow morning and will probably switch.
I like how you added all the examples in settings unlike other similar plugins.
Also I don`t recall others having both chat and hud together in the same plugin.
ChillerX is offline
Reply


Thread Tools
Display Modes

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 01:39.


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