Raised This Month: $ Target: $400
 0% 

Guarantee the order of chat messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 01-11-2011 , 11:31   Guarantee the order of chat messages
Reply With Quote #1

Hello,
is there a way to guarantee the order of the messages?
I mean, if I do two or more PrintToChatAll directly together, the order of appearing on the client differs, and this is not good.

So is there a way?

Thanks!
Chrisber is offline
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Old 01-11-2011 , 12:56   Re: Guarantee the order of chat messages
Reply With Quote #2

Delay the messages so they aren't sent at the same time.
Pawn 3-pg is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 01-11-2011 , 13:03   Re: Guarantee the order of chat messages
Reply With Quote #3

This is more a hack than a solution.
Why does it work with EventScripts but not with SM? :/

Last edited by Chrisber; 01-11-2011 at 13:18.
Chrisber is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-11-2011 , 14:44   Re: Guarantee the order of chat messages
Reply With Quote #4

Maybe ES is slower?
__________________
asherkin is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-11-2011 , 14:58   Re: Guarantee the order of chat messages
Reply With Quote #5

yup
es "plugins" is just a list of commands :s
__________________
Leonardo is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 01-12-2011 , 07:25   Re: Guarantee the order of chat messages
Reply With Quote #6

Python is not a list of commands...
I don't think that this behaviour is caused by the speed of SourcePawn.

Thanks anyway!
Chrisber is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-12-2011 , 12:27   Re: Guarantee the order of chat messages
Reply With Quote #7

"a SourceMod extension that embeds the CPython interpreter, allowing you to create plug-ins in Python."
if you want to write plugins on python
__________________
Leonardo 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 03:05.


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