Quote:
Originally Posted by luciaus18
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[], line, text[], 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_file( ads_path, i, ads[ads_count], charsmax(ads) ) // line 79.. looks alright I guess?
ads_count++
}
Dude... just UPDATEEEEEEEE why are you still on 1.8.2.
__________________