maddinat0r / samp-tsconnector

A plugin for SA-MP to control a Teamspeak3 Server from the gamemode
MIT License
17 stars 3 forks source link

reasonid=10 ? #19

Closed Bluscream closed 6 years ago

Bluscream commented 6 years ago

https://github.com/maddinat0r/samp-tsconnector/blob/fbc4fc5c470a9ed6f9aca5d55dc0b0fb9d233545/src/CServer.cpp#L22

What reason is reasonid 10?

maddinat0r commented 6 years ago

10 stands for "server or channel edited". As it's a event for a channel edit, reasonid is always 10.

Bluscream commented 6 years ago

Ahh thanks :) I would suggest parsing the events instead of RegEx'ing them tho. Maybe Teamspeak or 3rd party servers like TeaSpeak change the order of the key/value pairs.

maddinat0r commented 6 years ago

Yeah I know, using regular expressions here isn't really the best solution. I'll replace it with a proper token parser eventually.

Bluscream commented 6 years ago

Thanks :>