Yo, your Github link on this post links to an invalid path. You forgot the /inc path or moved it. It's ../master/inc/quat.inc instead of ../master/quat.inc now. Just incase people wanted to look at it and you haven't noticed the link doesn't work yet.
Figured out something! your code is not what i want, it is not using the player's facing angle, what if the player is facing south or east or west? it will still send the same angle.
Can you add facing angle into your code? Thanks for helping.
K now it works and not crashes the server.
Btw now it sends blank message in the text when i write "$" in the chat.
Anything else to do? So it shows dollar sign not blank msg.
EDIT: "$" Sign shows only in chat when i type intergers with them, like $50.
Not shows the sign when i do lo$$ :P
Thanks for helping me.. but the code u gave crashes the server when..
there is "$" sign in the text, without "loc"
And also crashed when i write "Hello im in $" without "loc"
Any help? it doesnt show anything in serverlog.txt.
Just crashes http://forum.sa-mp.com/showthread.php?t=556982
if you would use sizeof then it would be wrong. Imagine a situation where you declare new reason; and you just use like 20 characters (end of string included). The character in reason will be '\0'. The strlen will deliver 19, sizeof will deliver 128. So basically reason[strlen(reason) -1] will be the last non '\0' character of the string. So I made a little mistake in there, because it's strlen(reason) -1 and not -2.