Raised This Month: $ Target: $400
 0% 

SET Team By Steam id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 06-13-2018 , 00:46   Re: SET Team By Steam id
Reply With Quote #1

@fysiks me tried to make a small map menu to change map (only for learn) but i am getting issue with menu her eis the code

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

new filename164 ];

new Array: 
Maps;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
get_configsdir(filename164);
    
format(filename164"%s/special_map.ini"filename);
}

public 
plugin_cfg()
{
    
Maps ArrayCreate(641);
    
    if( 
file_existsfilename ) )
    {
        new 
open fopenfilename"rt");
        
        new 
buffer164 ];
        
        while( !
feofopen ) )
        {
            
fgetsopenbuffercharsmax(buffer));
            
            if( !
buffer] || buffer] == ';' || buffer] == '/' && buffer] == '/' )
            {
                continue;
            }
            
            
trim(buffer);

            
ArrayPushArray(Mapsbuffer);
            
        }
    }
}

public 
ShowMenu(id)
{
    new 
dataMAX_PLAYERS ];
    new 
menu menu_create("MapMenu""chnage_map");
    
    new 
g_maps ArraySize(Maps);
    
    
ArrayGetString(Mapsg_mapsdatacharsmax(data))
    
    
trim(data);
    
    
menu_additem(menudata); //Add the options to the menu
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
    
menu_display(idmenu0);
    
    return 
PLUGIN_HANDLED;
}

public 
chnage_map(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
buffer[6], access

    menu_item_getinfo
(menuitemaccessbuffercharsmaxbuffer ));


    
menu_destroy(menu);

    return 
PLUGIN_HANDLED;

error
PHP Code:
Compiling Map_Knife... Current time is10:13:50.54 Wed

AMX Mod X Compiler 1.8.3
-dev+5154
Copyright 
(c1997-2006 ITB CompuPhase
Copyright 
(c2004-2013 AMX Mod X Team

D
:\MY AMXX PLUGINS\Map_Knife.sma(86) : error 088number of arguments does not match definition

1 Error
.
Could not locate output file D:\New folder\HLDS\Half-Life\cstrike\addons\amxmodx\plugins\Map_Knife.amx (compile failed).
There was an compilation errorExiting... 

Took 0:00:00,13 seconds to run this script.

[
Finished in 0.2s
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
Reply



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 04:33.


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