Raised This Month: $ Target: $400
 0% 

Compling plugin..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Waylay
Member
Join Date: Feb 2006
Old 07-21-2006 , 08:36   Compling plugin..
Reply With Quote #1

Code:
/home/groups/amxmodx/tmp3/phpRegRZo.sma(3) : error 021: symbol already defined: "register_plugin"
+1 karma if help ^^
Waylay is offline
Send a message via MSN to Waylay
sleeperzzz
Senior Member
Join Date: Aug 2004
Location: In my bed
Old 07-21-2006 , 09:19   Re: Compling plugin..
Reply With Quote #2

It basicly means that register_plugin is in the sma twice.

Just open the sma and search for register_plugin and delete one of them and the error should be solved.
__________________

Last edited by sleeperzzz; 07-21-2006 at 09:23.
sleeperzzz is offline
Send a message via AIM to sleeperzzz Send a message via MSN to sleeperzzz Send a message via Yahoo to sleeperzzz Send a message via Skype™ to sleeperzzz
Waylay
Member
Join Date: Feb 2006
Old 07-21-2006 , 09:54   Re: Compling plugin..
Reply With Quote #3

Code:
#include <amxmodx>

      register_plugin("ServerHelp","1.0","waylay")
      register_clcmd("say /serverhelp","serverhelp")

public serverhelp
{
      	show_motd(id,"/addons/amxmodx/serverhelp/serverhelp.txt")
}

PLUGIN_CONTINUE
lerned from predator mode plugin
Waylay is offline
Send a message via MSN to Waylay
sleeperzzz
Senior Member
Join Date: Aug 2004
Location: In my bed
Old 07-21-2006 , 10:17   Re: Compling plugin..
Reply With Quote #4

Code:
#include <amxmodx>

public plugin_init()
{

      register_plugin("ServerHelp","1.0","waylay")
      register_clcmd("say /serverhelp","serverhelp")


}

public serverhelp(id)
{
      	show_motd(id,"/addons/amxmodx/serverhelp/serverhelp.txt")
}
This should make it work


Also read docs when you have time cause for a plugin you may never forget to add plugin_init()

Code:
//This is a public function.  
//It is necessary to initialize your script under AMX Mod X.
//It takes no parameters, and is called right after map load.
public plugin_init()
{
     //This is a function that takes three strings.
     //It registers your function in AMX Mod X, and assigns some basic information.
     register_plugin(PLUGIN, VERSION, AUTHOR)
}
Also plugin_continue aint needed in here its not like whena player types /serverhelp that the plugin needs to continue and do some other commands when a gamer types that.So that needed to go too
__________________

Last edited by sleeperzzz; 07-21-2006 at 10:27. Reason: Extra info
sleeperzzz is offline
Send a message via AIM to sleeperzzz Send a message via MSN to sleeperzzz Send a message via Yahoo to sleeperzzz Send a message via Skype™ to sleeperzzz
Waylay
Member
Join Date: Feb 2006
Old 07-21-2006 , 15:27   Re: Compling plugin..
Reply With Quote #5

Okey, but how to make menus that if you press for exempel button 1 you get to ,exemple glow menu..i almost know exactly how to make menus and so but not the glow,trails,/s /l, and that..*fun plugin*^^

Edit: +1 karma
Waylay is offline
Send a message via MSN to Waylay
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 07-21-2006 , 20:03   Re: Compling plugin..
Reply With Quote #6

set_user_rendering

just look through existing plugins and see how they do it. Copy and paste has its uses .
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Waylay
Member
Join Date: Feb 2006
Old 07-22-2006 , 05:08   Re: Compling plugin..
Reply With Quote #7

right.. but is html allowed in the "serverhelp.txt" ??^^
Waylay is offline
Send a message via MSN to Waylay
sleeperzzz
Senior Member
Join Date: Aug 2004
Location: In my bed
Old 07-22-2006 , 05:54   Re: Compling plugin..
Reply With Quote #8

Yeah MOTD in steam supports HTML basic no flash or scripting.And theres a limitation on how big the html code is last time i made a new MOTD for my server

And about menus bah no idea i used the menu creator in AMX mod X Studio but my last plugin failed huge with those menus so i aint gonna help there since im still noob there....
__________________
sleeperzzz is offline
Send a message via AIM to sleeperzzz Send a message via MSN to sleeperzzz Send a message via Yahoo to sleeperzzz Send a message via Skype™ to sleeperzzz
Waylay
Member
Join Date: Feb 2006
Old 07-22-2006 , 07:31   Re: Compling plugin..
Reply With Quote #9

lols,thx anyways^^
Waylay is offline
Send a message via MSN to Waylay
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 08:36.


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