A little help.
#1

Hi.
When a player types something in the chat i want it to be like this:
"Elliot says: text"
here is my code:
Код:
	new pText[144];
	format(pText, sizeof (pText), "{a5a5a5}%s kaze:{ffffff}  %s",ImeIgraca(playerid), text);
	SendPlayerMessageToAll(playerid, pText);
    SetPlayerChatBubble(playerid, text, -1, 20.0, 15000);
	return 0;
so instead it looks like this
"Elliot: Elliot says: text"

I know there is something small that i've done wrong, but i don't know what.
Thanks.
Reply
#2

u need to return 0; at ur onplayertext
Reply
#3

Provide us the source of ImeIgraca();
Reply
#4

Here it its:
Код:
ImeIgraca(playerid)
{
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, sizeof(name));
	return name;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)