Raised This Month: $ Target: $400
 0% 

Somethings wrong..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Amxx-PluginCreator
BANNED
Join Date: Nov 2006
Location: Desktop
Old 01-20-2007 , 17:33   Somethings wrong..
Reply With Quote #1

I can't compile my test plugin? You know why? +Karma if helped.

Code:
#include <amxmodx>
#include <tfcx>
#include <fun>

public plugin_init()
{
    register_plugin("WeaponMe","0.1","NeoFORT")
    register_clcmd("say needrocket","fnSayNeedRocket")
}

public fnSayNeedRocket(id)
{
    give_item(id,"tf_weapon_rpg")
    tfc_setbammo(id,TFC_AMMO_ROCKETS,25)
    client_cmd(id,"tf_weapon_rpg")
  }
  
  public plugin_init()
{
    register_clcmd("say needcrowbar","fnSayNeedCrowbar")
}

public fnSayNeedCrowbar(id)
{
    give_item(id,"tf_weapon_crowbar")
    client_cmd(id,"tf_weapon_crowbar")
  
 }
 
 public plugin_init()
{
    register_clcmd("say needshotgun","fnSayNeedShotGun")
}

public fnSayNeedShotGun(id)
{
    give_item(id,"tf_weapon_shotgun")
    client_cmd(id,"tf_weapon_shotgun")
    
   }
I didn't originaly make this plugins, I'm editing it and adding more to it. Sounds will be added later when we know what problem is.

Last edited by Amxx-PluginCreator; 01-20-2007 at 17:38. Reason: No Reason.
Amxx-PluginCreator is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-20-2007 , 17:39   Re: Somethings wrong..
Reply With Quote #2

Hint: Check compiler...
Code:
Error: Symbol already defined: "plugin_init" on line 19
Error: Symbol already defined: "plugin_init" on line 31
Code:
#include <amxmodx> #include <tfcx> #include <fun> public plugin_init() {     register_plugin("WeaponMe","0.1","NeoFORT")     register_clcmd("say needrocket","fnSayNeedRocket")     register_clcmd("say needcrowbar","fnSayNeedCrowbar")     register_clcmd("say needshotgun","fnSayNeedShotGun") } public fnSayNeedRocket(id) {     give_item(id, "tf_weapon_rpg")     tfc_setbammo(id, TFC_AMMO_ROCKETS,25)     client_cmd(id, "tf_weapon_rpg") } public fnSayNeedCrowbar(id) {     give_item(id,"tf_weapon_crowbar")     client_cmd(id,"tf_weapon_crowbar") } public fnSayNeedShotGun(id) {     give_item(id, "tf_weapon_shotgun")     client_cmd(id, "tf_weapon_shotgun") }

Last edited by [ --<-@ ] Black Rose; 01-20-2007 at 17:43.
[ --<-@ ] Black Rose is offline
Amxx-PluginCreator
BANNED
Join Date: Nov 2006
Location: Desktop
Old 01-20-2007 , 17:39   Re: Somethings wrong..
Reply With Quote #3

I'm new, don't post nonsense please, and help.
Amxx-PluginCreator is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-20-2007 , 17:51   Re: Somethings wrong..
Reply With Quote #4

Quote:
Originally Posted by Amxx-PluginCreator View Post
I'm new, don't post nonsense please, and help.
What nonsense?

ok so he edited and added the code, but the compiler problems do tell you exactly what is wrong..

plugin_init was used twice obviously and it was yelling at you for that.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-20-2007 , 18:05   Re: Somethings wrong..
Reply With Quote #5

Quote:
Originally Posted by SweatyBanana View Post
plugin_init was used twice obviously and it was yelling at you for that.
3 times actually.
[ --<-@ ] Black Rose is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-20-2007 , 18:06   Re: Somethings wrong..
Reply With Quote #6

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
3 times actually.
ahh well close enough guess LOL
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Amxx-PluginCreator
BANNED
Join Date: Nov 2006
Location: Desktop
Old 01-20-2007 , 17:44   Re: Somethings wrong..
Reply With Quote #7

Ahh, thank you for your help. ++Karma
Amxx-PluginCreator is offline
Old 01-21-2007, 20:33
Zenith77
This message has been deleted by Zenith77.
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 22:29.


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