Display message to players - csgo?

Please post any questions about developing your plugin here. Please use the search function before posting!
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

Display message to players - csgo?

Postby Tuck » Sat May 10, 2014 7:16 pm

This code bellow seems to crash the server a few seconds after it's triggered

Syntax: Select all

SayText2(message='\x03%s\x01 has earned the achievement \x05%s' % (player.kiwi['tag'], achievement.name)).send()


https://github.com/Source-Python-Dev-Team/Source.Python/issues/4

I'm going to guess that this protobuf is the new saytext in csgo? (i remember a little about it)

However do we have something a like saytext2 that won't crash the server for a temporary fix ?
-Tuck
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sat May 10, 2014 7:41 pm

I do not crash when using SayText2, and it is not even mentioned in the thread the issue links to. I would imagine there is something else in your script causing the crash.
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

Postby Tuck » Sat May 10, 2014 7:58 pm

It's only when i use Saytext2 it does come up with some weird [] symbol infront of all names i might be using it wrong?, i'm running on linux with latest release

infront of all saytext2 messages i do like that i get [] infront of the message (no idea why)

i'll try to use the saytext 2 in a different way and see if it courses the crash ill post later.
-Tuck
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

Postby Tuck » Sat May 10, 2014 10:23 pm

I think my problem is i'm calling saytext2 from without main thread. doing some more testing but i'm almost sure this is it.
-Tuck
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sat May 10, 2014 10:47 pm

I get the box at the beginning of the string, too. Not sure when that started happening, but we'll look into it.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 140 guests