Hello, i maded a scripts wich shows a menu like the old buy menu's style but due some reason i can't compile it, i dont get any errors the compiler just hangs also the online compiler here can't handle it.
I use the same scripts for some other ingame menu's wich works flawlesly, here the code which doesn't compile.
PHP Code:
include <amxmodx>
#include <cstrike>
#include <amxmisc>
#define KeysMenu5 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
public plugin_init() {
register_plugin("Custom Menu's","1.0","")
register_clcmd( "rules","ShowMenu5", 0, "open menu")
register_clcmd( "say rules","ShowMenu5", 0, "open menu")
register_clcmd( "say_team rules","ShowMenu5", 0, "open menu")
register_menucmd(register_menuid("Menu5"), KeysMenu5, "PressedMenu5")
}
public ShowMenu5(id,level,cid) {
if (!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
show_menu(id, KeysMenu5, "\yServer Rules^n^n\w1. No cheating^nNo hacking or using any other file wich give you an advatage on other players.^n^n2. Decent language^nNo respectless, offending/insulting, accusing, threatening, sicknesses, advertising,^nracism, nazism, rationally and non English/Dutch language.^n^n3. Decent nickname^nNo respectless, offending/insulting, accusing, threatening, sicknesses, advertising,^nracism, nazism, rationally and copying nicknames.^n^n4. No spam^nNo spamming with chat, radio and voicecom features.^n^n5. Decent gameplay^nNo intentional teamblocking, -attacking, -killing, not completing your mission.^nOur public servers are meant for the common players, extreme noobs/pro's might be^nremoved to guarantee a playable gameplay for the common player. ^n^n0. I agree 9. I disagree^n^n\yCopyright 2009 Dutchgamers.nl^nLast changed 15-3-2009", -1, "Menu5")
return PLUGIN_HANDLED
}
public PressedMenu5(id, key) {
switch (key) {
case 0: client_cmd(id,"")
case 1: client_cmd(id,"")
case 2: client_cmd(id,"")
case 3: client_cmd(id,"")
case 4: client_cmd(id,"")
case 5: client_cmd(id,"")
case 6: client_cmd(id,"")
case 7: client_cmd(id,"")
case 8: client_cmd(id,"disconnect")
}
return PLUGIN_HANDLED
}
__________________