AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   plugin error (https://forums.alliedmods.net/showthread.php?t=335453)

serhat2110 12-06-2021 00:50

plugin error
 
Code:

eklenti.sma(9266) : error 034: argument does not have a default value (argument 3)
eklenti.sma(9266) : error 088: number of arguments does not match definition

my server does not support amxx 1.8.3. The plugin was created with 1.8.3. I'm converting the plugin to 1.8.2 It gives errors. I fixed some bugs. How can I resolve this error?

HTML Code:

new Data[6], key;
new sz_name[32]
get_user_name(id, sz_name, 31)
menu_item_getinfo(menu, item, _, Data, charsmax(Data)); // error line
key = str_to_num(Data);
switch(key) {
        case 1: {
                score[CT]++
                ColorChat(0,YELLOW, "^x04%s^x03 isimli Admin, ^x04Juventus FC ^x03'nin skorunu^x03 arttirdi.", sz_name)
        }
        case 2: {
                score[CT]--
                ColorChat(0,YELLOW, "^x04%s^x03 isimli Admin, ^x04Juventus FC ^x03'nin skorunu^x03 azaltti.", sz_name)
        }
        case 3: {
                score[T]++
                ColorChat(0,YELLOW, "^x04%s^x03 isimli Admin, ^x04M.United ^x03'in skorunu^x03 arttirdi.", sz_name)
        }
        case 4: {
                score[T]--
                ColorChat(0,YELLOW, "^x04%s^x03 isimli Admin, ^x04M.United ^x03'in skorunu^x03 azaltti.", sz_name)
        }
}


OciXCrom 12-06-2021 05:52

Re: plugin error
 
How can a server not support a newer AMXX version?
Also 1.8.3 is not a supported version. The latests dev builds are 1.9 and 1.10.

M Ali 12-09-2021 23:33

Re: plugin error
 
some of directories was misplaced so it couldn't find the right pathing.

OciXCrom 12-10-2021 02:23

Re: plugin error
 
Quote:

Originally Posted by M Ali (Post 2765463)
some of directories was misplaced so it couldn't find the right pathing.

Who are you again?


All times are GMT -4. The time now is 23:47.

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