Raised This Month: $ Target: $400
 0% 

Please Help !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ScreamTR
Junior Member
Join Date: Nov 2011
Old 11-14-2011 , 08:28   Please Help !
Reply With Quote #1

i am turkish my english bad

Code:
#include <amxmodx>
#include <fun>
#include <cstrike>

#define PLUGIN "Model-Menu"
#define VERSION "1.0"
#define AUTHOR "ScreamTR"


public plugin_init() {
    register_plugin(Model-Menu, 1.0,menu)
    register_clcmd("say /modelmenu","menu")
    register_clcmd("say_team /modelmenu","menu")
    register_clcmd("say .modelmenu","menu")
    register_clcmd("say modelmenu","menu")
    register_clcmd("say_team modelmenu","menu")
}
public menu(id)
{
    if (cs_get_user_team(id) == CS_TEAM_CT)
    {
    new menu = menu_create("yModel-Menu","wybor_menu")
    
    menu_additem(menu,"wSas","1",0)
    menu_additem(menu,"gsg9","2",0)
    menu_additem(menu,"wgign","3",0)
    menu_additem(menu,"Urban","4",0)
    menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
    menu_display(id,menu,0)
}
}
public wybor_menu(id,menu,item)
{

    if(item==MENU_EXIT)
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }

    new data[6], iName[64]
    new access, callback

    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);

    new key = str_to_num(data)

    switch(key)
    {
        case 1 : {
        cs_set_user_model(id, "sas")
        set_hudmessage(255, 0, 0, -1.0, 0.01)
        show_hudmessage(id, "<Sas Oldun !>")
        console_cmd(id,"say Sas oldum :)")
        
    }
        case 2 : {
        cs_set_user_model(id, "gsg9")
        console_cmd(id,"say Gsg9 oldum :)")
        set_hudmessage(255, 0, 0, -1.0, 0.01)
        show_hudmessage(id, "<Gsg9 Oldun !>")
    }
        case 3 : {
        cs_set_user_model(id, "gign")
        console_cmd(id,"say Gign oldum :)")
        set_hudmessage(255, 0, 0, -1.0, 0.01)
        show_hudmessage(id, "<Gign Oldun !>")
    }
    case 4 :{
        cs_set_user_model(id, "Urban")
        console_cmd(id,"say Urban oldum :)")
        set_hudmessage(255, 0, 0, -1.0, 0.01)
        show_hudmessage(id, "<Urban Oldun !>")
    }
    }
    return PLUGIN_HANDLED
}
where is Error ??

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team  /tmp/textZehYRG.sma(11) : error 017: undefined symbol "Model" /tmp/textZehYRG.sma(11) : warning 215: expression has no effect /tmp/textZehYRG.sma(11) : error 076: syntax error in the expression, or invalid function call /tmp/textZehYRG.sma(11) : error 029: invalid expression, assumed zero /tmp/textZehYRG.sma(11) : fatal error 107: too many error messages on one line  Compilation aborted. 4 Errors.
i am beginner

Can you edit this and give me ?

Thanks

Last edited by ScreamTR; 11-14-2011 at 08:29.
ScreamTR is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-14-2011 , 08:34   Re: Please Help !
Reply With Quote #2

Code:
register_plugin(Model-Menu, 1.0,menu)
->>
Code:
register_plugin(PLUGIN, VERSION,AUTHOR)
Dark Style is offline
ScreamTR
Junior Member
Join Date: Nov 2011
Old 11-14-2011 , 08:38   Re: Please Help !
Reply With Quote #3

Thanks Please
ScreamTR is offline
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 08:32.


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