Raised This Month: $ Target: $400
 0% 

hud error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
omgitsme
Veteran Member
Join Date: Mar 2010
Old 06-17-2010 , 03:31   hud error
Reply With Quote #1

Code:
set_hudmessage("255", "255", "0", "-1.0", "-1.0", "0", "6.0", "5.0")
show_hudmessage(id, "Rasyk /pirkti jei nori vip/admin privelgu!")
#include <amxmodx>

 public plugin_init()
 {
 	register_plugin("Pirkti menu", "1.0", "omgitsme")
         register_clcmd( "say /pirkti","Pirkti");
 }
 public Pirkti(id)
 {
    new menu = menu_create("\rServer paslaugos:", "menu_handler");
    menu_additem(menu, "\wAdmin + Vip", "1", 0);
    menu_additem(menu, "\wAdmin", "2", 0);
    menu_additem(menu, "\wVip", "3", 0);
    menu_additem(menu, "\wSlot", "4", 0);
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_display(id, menu, 0);
    
 }
 public menu_handler(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:
        {
            show_motd(id, "admin.txt");
            menu_destroy(menu);
            return PLUGIN_HANDLED;
        }
        case 2:
        {
            show_motd(id, "uzas.txt");
        }
        case 3:
        {
            show_motd(id, "vip.txt");
        }
        case 4:
        {
            show_motd(id, "slot.txt");
        }
    }
    menu_destroy(menu);
    return PLUGIN_HANDLED;
 }
without hud it works, i made the hud with hud genorator. it's proberly not in the correct place or i did something wrong. can someone fix it please?
__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
 


Thread Tools
Display Modes

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 14:49.


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