"Realchat"
#1

Hey guys!

I want that, when the players write something in just normal chat, it should say: "Name" says: (text).
Normal it just says: "Name": (text)

Okay, so here's what I got:

I put this on OnPlayerText:
pawn Код:
{
    new sendername[MAX_PLAYER_NAME];
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s says: %s", sendername, text);
    ProxDetector(50.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
    return 0;
}
When I made this, I wanted it to do what I said, but it doesn't? How can I make it say what I want?

Thanks.

/JaloNik.
Reply
#2

That should do "Name says: (text)". Compile your code
Reply
#3

Quote:
Originally Posted by dice7
Посмотреть сообщение
That should do "Name says: (text)". Compile your code
I have done it. It doesn't say that "says" And it's exactly what I want it to do.
Reply
#4

MY FAULT! - I failed big time here. I didn't know why it didn't do it! - But I had tested an older version of my script, so I forgot to change the game mode back! xDD That's the reason, lol. xDD
Reply
#5

Quote:
Originally Posted by JaloNik
Посмотреть сообщение
MY FAULT! - I failed big time here. I didn't know why it didn't do it! - But I had tested an older version of my script, so I forgot to change the game mode back! xDD That's the reason, lol. xDD
Hahha! made me laugh x)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)