ID near Name!
#1

Hi guys, i already have the code, but i have 1problem. When i write something my name come 2times
1.st time with id
2.st time without id
Why?

Here is my code:
Код:
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s(%d): %s",name,playerid, text);
    SendClientMessageToAll(-1, string);
Screen Shot:
Reply
#2

'return false' rather than true.
Reply
#3

Return 0; in the OnPlayerText public function
which will set the auto-msg from being sent, glad to help.




TOO LATE
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 21 seconds.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)