AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Symbol Never Used (https://forums.alliedmods.net/showthread.php?t=217774)

m4m3ts 06-07-2013 09:49

[HELP] Symbol Never Used
 
2 Attachment(s)
i made this plugin & include file,

SMA

PHP Code:

#include <amxmodx>
#include <dinfinity>

#define PLUGIN "Shop"
#define VERSION "1.0"
#define AUTHOR "m4m3ts"


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /wpn""MyMenu")
}

public 
MyMenu (id)
{
    new 
menu menu_create("Extra Weapon Menu","menu_handler")
    
menu_additem(menu"Dual Infinity Final","1",0);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
menu_handler(idmenuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
                
give_dinfinity(id)
        }
    }


include

PHP Code:

#pragma reqlib "dinfinity"

give_dinfinity(id

but it has any error.

http://i294.photobucket.com/albums/m...rrorplugin.jpg

please someone fix it.

dias 06-07-2013 09:52

Re: [HELP] Symbol Never Used
 
PHP Code:

#pragma reqlib "dinfinity"

give_dinfinity(id

should be
PHP Code:

#pragma reqlib "dinfinity"

native give_dinfinity(id

and
PHP Code:

public MyMenu (id

should be
PHP Code:

public MyMenu(id


m4m3ts 06-07-2013 10:03

Re: [HELP] Symbol Never Used
 
thanks !


All times are GMT -4. The time now is 16:14.

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