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.
but here i have if x is not = to playerid and oattached[playerid] = 1) If x is not that <- show it to x
if(x != playerid && (oattached[playerid]))
And i want to move the object continuesly to the position of playerid and oattached[playerid] = 1..
Because the object that is attached to playerid and oattached[playerid] (the same player), see's the object but not others, So i want to create a fake object for everyone else but not for playerid.
It would be moving to the position where the player object 'x' is moving (Get the attached object pos and update the CreateObject or CreateDynamicObject to that pos). And it'll be CreateObject as Attached object can't be detected with OnPlayerWeaponShot.