Raised This Month: $ Target: $400
 0% 

Help (Can't Compile plugin)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Skatz
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 08-13-2012 , 21:24   Help (Can't Compile plugin)
Reply With Quote #1

Hello
Can someone where is the error in this plugin? I can't compile him :s (sorry foi my english)

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>


public plugin_init()
{
    
register_plugin("user menu""1.0","bfcb)
    register_clcmd( "
say /menu", "abrir_menu")
}

public abrir_menu(id,level,cid)
{
    if(!cmd_access(id,level,cid,1))
        return PLUGIN_HANDLED
        
    new Menu = menu_create("
\y[FightZone] - \rMenu", "mostrar_menu")
    menu_additem(Menu, "
\wConectar TeamSpeak", "1", 0)
    menu_additem(Menu, "
\wJogar Cobra", "2", 0)
    menu_additem(Menu, "
\wJogar Tetris", "3", 0)
    menu_additem(Menu, "
\wComprar VIP", "4", 0)  
    menu_additem(Menu, "
\wVantagens dos VIPS", "5", 0)
    menu_additem(Menu, "
\wReniciar o Score", "6",0)
    menu_setprop(Menu,MPROP_EXITNAME,"
Sair") 
    menu_display(id, Menu)
    return PLUGIN_HANDLED
}
public mostrar_menu(id, Menu, item)
{
    if(item == MENU_EXIT)
        return PLUGIN_HANDLED
    new iData[6];  
    new iAccess; 
    new iCallback; 
    new iName[64]; 
    menu_item_getinfo(Menu , item , iAccess , iData , 5 , iName, 63 , iCallback )
    
    switch (str_to_num(iData)) 
    { 
            case 1 : client_cmd(id, "
say ts3")
            case 2 : client_cmd(id, "
say cobra")
            case 3 : client_cmd(id, "
say tetris)
            case 
client_cmd(id"say /vip")
            case 
5client_cmd(id"say !vipinfo")
            case 
6client_cmd(id"say rs")
    }
    
    
menu_destroy(Menu)
    return 
PLUGIN_HANDLED 

__________________
Skatz is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-13-2012 , 22:14   Re: Help (Can't Compile plugin)
Reply With Quote #2

Code:
register_plugin("user menu", "1.0","bfcb)

PHP Code:
register_plugin("user menu""1.0","bfcb"
and
Code:
            case 3 : client_cmd(id, "say tetris)

PHP Code:
            case client_cmd(id"say tetris"
Don't forget to close your quotes.
Also...if that isn't all. Post the compilation errors you get.
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 08-13-2012 at 22:16.
Liverwiz is offline
Skatz
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 09-16-2012 , 13:06   Re: Help (Can't Compile plugin)
Reply With Quote #3

Big mistake, thank you!
Now I can compile but it doesnt work on server, can you tell me what is wrong with my plugin?
btw, sorry for my english
__________________
Skatz is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-16-2012 , 13:34   Re: Help (Can't Compile plugin)
Reply With Quote #4

check your error logs. Do they say anything?
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-16-2012 , 13:58   Re: Help (Can't Compile plugin)
Reply With Quote #5

You can't just say "it doesn't work," you must explain exactly what doesn't work.
__________________
fysiks is offline
Old 09-16-2012, 14:00
Torge
This message has been deleted by Torge. Reason: well, i was blind again xD ..
Skatz
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 09-16-2012 , 14:19   Re: Help (Can't Compile plugin)
Reply With Quote #6

I type /menu in my server and menu dosent open, can someone fix that?
__________________
Skatz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-16-2012 , 14:29   Re: Help (Can't Compile plugin)
Reply With Quote #7

Quote:
Originally Posted by Skatz View Post
I type /menu in my server and menu dosent open, can someone fix that?
Is the plugin running?
__________________
fysiks is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 09-16-2012 , 14:58   Re: Help (Can't Compile plugin)
Reply With Quote #8

The plugin works just fine if its installed correctly.
__________________

Accepting all kinds of requests via private message.
matsi is offline
Skatz
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 09-17-2012 , 17:05   Re: Help (Can't Compile plugin)
Reply With Quote #9

Yes is running
in my server doesnt work
__________________
Skatz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-17-2012 , 19:28   Re: Help (Can't Compile plugin)
Reply With Quote #10

Quote:
Originally Posted by Skatz View Post
Yes is running
in my server doesnt work
Then you need to provide more information. Attach the current .sma to your post. Also, show the output of the following command:
Code:
rcon amxx list
__________________
fysiks is offline
Reply


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


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