Raised This Month: $ Target: $400
 0% 

Script won't compile


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 03-15-2009 , 20:03   Script won't compile
Reply With Quote #1

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
(idKeysMenu5"\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(idkey) {

    switch (
key) {
        case 
0client_cmd(id,"")
        case 
1client_cmd(id,"")
        case 
2client_cmd(id,"")
        case 
3client_cmd(id,"")
        case 
4client_cmd(id,"")
        case 
5client_cmd(id,"")
        case 
6client_cmd(id,"")
        case 
7client_cmd(id,"")
        case 
8client_cmd(id,"disconnect")
    }
    return 
PLUGIN_HANDLED

__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.
Maurice is offline
 



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:51.


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