Posts: 526
Threads: 52
Joined: Feb 2013
Reputation:
0
When I use a command such as let's say /pm ( private message ) [playerid] [text] and try using the full name or just a random letter/word it sends the private message to me, even if my name is "Mark" and I use "g".
I have tried to ****** it, but I did not even know what to ******.
What may be the problem?
Thank you in advance.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Man, your code is a mess. How could anyone possibly debug this ...
Posts: 526
Threads: 52
Joined: Feb 2013
Reputation:
0
I just started scripting a week ago. :/
Any advices on how to make it a bit more clear or anything like that?
Posts: 1,861
Threads: 103
Joined: Sep 2011
Reputation:
0
If you post just the /pm command here, between pawn tags, we can see if it's a problem in the command, or maybe your sscanf being outdated.
EDIT: before posting the code, you might want to indent it properly using the tutorial in [MG]Dimi's link below my post.
This way it will be alot easier to find eventual problems
Posts: 526
Threads: 52
Joined: Feb 2013
Reputation:
0
Alright, thank you for all the help.
You deserve a reputation point.
Posts: 526
Threads: 52
Joined: Feb 2013
Reputation:
0
By the way, it is not the actual command.
It is the same in every command that requiers a player's name/ID.
It uses the ID perfectly, but when I try using a name, part of a name it just chooses a random player. I will update my gamemode and make it as readable as possible and make an other thread or just post a new link to the new one.
Thank you all.