Raised This Month: $ Target: $400
 0% 

give weapon problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 03-31-2005 , 02:15   give weapon problem
Reply With Quote #1

[AMXX] Run time error 3 (stack error) on line 12 (file "freeshotty.sma")
i get this when i make a server

Code:
public plugin_init(){
	register_plugin("free shotty","1.0","Cheap_Suit")
	register_event("ResetHUD","newRound","b")
	
}

public newRound(id){

	give_item(id,"weapon_m3")
	give_item(id,"ammo_buckshot")

	return PLUGIN_CONTINUE	
}
anyone know the problem?
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-01-2005 , 18:22  
Reply With Quote #2

What exactly is line 12?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 04-01-2005 , 18:44  
Reply With Quote #3

Try adding if(!is_user_connected(id)) return PLUGIN_CONTINUE before the give_items.
__________________
twistedeuphoria is offline
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 10:02.


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