Raised This Month: $51 Target: $400
 12% 

[SM] Native "PrintToChat" reported: Could not send a usermessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Warstories
Junior Member
Join Date: Aug 2011
Old 08-20-2012 , 19:14   [SM] Native "PrintToChat" reported: Could not send a usermessage
Reply With Quote #1

I keep getting this using the advertisements plugin by DJ Tsunami, and i've just been getting this like crazy, and nothing seems to fix it, I also have the sourcemod 1.4.5 snapshot, is this something I need to wait to get fixed or should I just get that new advertisements plugin?
Code:
L 08/20/2012 - 23:12:13: [SM] Native "PrintToChat" reported: Could not send a usermessage
L 08/20/2012 - 23:12:13: [SM] Displaying call stack trace for plugin "advertisements.smx":
L  08/20/2012 - 23:12:13: [SM]   [0]  Line 248,  /home/groups/alliedmodders/forums/files/3/4/6/6/8/24253.attach::Timer_DisplayAds()
__________________


Last edited by Warstories; 08-20-2012 at 19:15.
Warstories is offline
Dravu
Senior Member
Join Date: May 2010
Old 08-20-2012 , 20:14   Re: [SM] Native "PrintToChat" reported: Could not send a usermessage
Reply With Quote #2

Which snapshot exactly?
Dravu is offline
Warstories
Junior Member
Join Date: Aug 2011
Old 08-20-2012 , 21:14   Re: [SM] Native "PrintToChat" reported: Could not send a usermessage
Reply With Quote #3

Quote:
Originally Posted by Dravu View Post
Which snapshot exactly?
Latest Stable Snapshot for Linux 1.4.5
__________________

Warstories is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-20-2012 , 21:23   Re: [SM] Native "PrintToChat" reported: Could not send a usermessage
Reply With Quote #4

You have a another buggy plugin that's causing the advertisements plugin to fail.

If a plugin does not call EndMessage when sending a usermessage (or errs out before that after starting one), it will break usermessage sending, including PrintToChat for all other plugins.
psychonic is offline
Xaphan
SourceMod Donor
Join Date: Jun 2008
Old 02-05-2013 , 20:53   Re: [SM] Native "PrintToChat" reported: Could not send a usermessage
Reply With Quote #5

Quote:
Originally Posted by psychonic View Post
You have a another buggy plugin that's causing the advertisements plugin to fail.

If a plugin does not call EndMessage when sending a usermessage (or errs out before that after starting one), it will break usermessage sending, including PrintToChat for all other plugins.
Whats the correct way to call EndMessage?
__________________
Xaphan is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 02-06-2013 , 22:29   Re: [SM] Native "PrintToChat" reported: Could not send a usermessage
Reply With Quote #6

Quote:
Originally Posted by Xaphan View Post
Whats the correct way to call EndMessage?
After having start a message and pass its arguments along...

for more info, see examples in the wiki : http://wiki.alliedmods.net/User_Messages
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 02-06-2013 at 22:30.
RedSword 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 21:42.


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