Raised This Month: $ Target: $400
 0% 

Message_Begin shutsdown server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Ted
Junior Member
Join Date: Feb 2006
Old 03-17-2006 , 22:53   Message_Begin shutsdown server
Reply With Quote #1

This code shuts down the server. I am requesting some help for this

Code:
//Item Sunglasses
public item_sunglasses()
{
	new arg[32], id
	read_argv(1,arg,31)
	id = str_to_num(arg)
	if(onoff==0)
	{
		message_begin(MSG_ONE, gmsgFade, {0,0,0}, id)
		write_short(1<<0)
		write_short(1<<0) 
		write_short(1<<0) 
		write_byte(0) 
		write_byte(0)  
		write_byte(0)   
		write_byte(200)   
		message_end()
		client_cmd(id,"say /me puts on sunglasses")
		onoff=1
		return PLUGIN_HANDLED
	}
	else
	{
		message_begin(MSG_ONE, gmsgFade, {0,0,0}, id)
		write_short(1<<0)
		write_short(1<<0) 
		write_short(1<<0) 
		write_byte(0) 
		write_byte(0)  
		write_byte(0)   
		write_byte(0)   
		message_end()
		client_cmd(id,"say /me takes off sunglasses")
		onoff=0
		return PLUGIN_HANDLED
	}
	return PLUGIN_HANDLED
}
The Ted is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 03-17-2006 , 22:59  
Reply With Quote #2

probably an invalid message, an error would be nice.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
The Ted
Junior Member
Join Date: Feb 2006
Old 03-17-2006 , 23:52  
Reply With Quote #3

Well... the problem is it closes the game completely. The error logs only says.
Quote:
L 03/17/2006 - 23:52:13: [META] ini: Begin re-reading plugins list: /home/codyhu/hlds_l/ts/addons/metamod/plugins.ini
L 03/17/2006 - 23:52:13: [META] ini: Read plugin config for: AMX Mod X
L 03/17/2006 - 23:52:13: [META] ini: Finished reading plugins list: /home/codyhu/hlds_l/ts/addons/metamod/plugins.ini; Found 1 plugins
L 03/17/2006 - 23:52:13: [META] dll: Updating plugins...
L 03/17/2006 - 23:52:13: [META] dll: Finished updating 1 plugins; kept 1, loaded 0, unloaded 0, reloaded 0, delayed 0
L 03/17/2006 - 23:52:13: "Tyrannus Vicious<-1><><-1>" disconnected
L 03/17/2006 - 23:52:13: "Jacob Vivalldi<-1><><-1>" disconnected
L 03/17/2006 - 23:52:13: "George Skull 'BF Rec'<-1><><-1>" disconnected
L 03/17/2006 - 23:52:13: "Tony Cipriani'BF Hitman'<-1><><-1>" disconnected
L 03/17/2006 - 23:52:13: "Maczek Wolniek<-1><><-1>" disconnected
L 03/17/2006 - 23:52:14: Server shutdown
L 03/17/2006 - 23:52:14: Log file closed
The Ted is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-18-2006 , 00:08  
Reply With Quote #4

post your whole plugin
Freecode is offline
The Ted
Junior Member
Join Date: Feb 2006
Old 03-18-2006 , 00:11  
Reply With Quote #5

Quote:
Originally Posted by Freecode
post your whole plugin
It would be pretty pointless for me to do. Only that function cause the problem and have no relevance to anything else. Not to mention it is way too large to be put on the forum.
The Ted is offline
Des12
Senior Member
Join Date: Jan 2005
Old 03-18-2006 , 00:30  
Reply With Quote #6

do you have gmsgFade declared?
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-18-2006 , 00:48  
Reply With Quote #7

Quote:
Originally Posted by The Ted
Quote:
Originally Posted by Freecode
post your whole plugin
It would be pretty pointless for me to do. Only that function cause the problem and have no relevance to anything else. Not to mention it is way too large to be put on the forum.
right, but what calls that function? how are you declaring fade var? is the decleration wrong? Those are the reasons i said post. Plus you can attach it, no need to post the source ;]
Freecode is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-18-2006 , 00:49  
Reply With Quote #8

Hello Freecode.


[/code]Hello PM.[/b][/quote]
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
The Ted
Junior Member
Join Date: Feb 2006
Old 03-18-2006 , 00:52  
Reply With Quote #9

There it is. Everysingle other time I used it, worked fine. And yes this is based off of Harbu's item plugin.
The Ted is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-18-2006 , 01:00  
Reply With Quote #10

does
Code:
public item_flashbang()
work without any crash?
Freecode 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 16:30.


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