Raised This Month: $ Target: $400
 0% 

Last round?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-13-2012 , 09:31   Re: Last round?
Reply With Quote #1

Still crashing
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Mapbuild Vote"
#define VERSION "1.0"
#define AUTHOR "Bilal"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("RoundStart"2"1=Round_Start")
}

public 
RoundStart()
{
    
set_task(1.0"CheckTimeleft"_,_,_"b")
}

public 
CheckTimeleft(id)
{
    new 
test get_timeleft()
    
    if (
test <= 60)
    {
        
CmdMenu(id)
    }
    return 
PLUGIN_CONTINUE
}

public 
CmdMenu(id)
{
    new 
menu menu_create("\yRate this map:""Menuhandler")
    
    
menu_additem(menu"Excellent""1")
    
menu_additem(menu"Good""2")
    
menu_additem(menu"Regular""3")
    
menu_additem(menu"Terrible""4")
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)
}

public 
Menuhandler(idmenuitem)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], name[64], accescallback
    menu_item_getinfo
(menuitem ,accesdatacharsmax(data), namecharsmax(name), callback)
    new 
key str_to_num(data)
    
    switch (
key)
    {
        case 
1client_print(idprint_center"Thank you for your vote!")
            case 
2client_print(idprint_center"Thank you for your vote!")
            case 
3client_print(idprint_center"Thank you for your vote!")
            case 
4client_print(idprint_center"Thank you for your vote!")
        }
    return 
PLUGIN_HANDLED

Crash message: MSG_ONE or MSG_ONEUNRELIABLE with no target entity
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro 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 00:19.


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