SA-MP Forums Archive
A little help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A little help. (/showthread.php?tid=641084)



A little help. - AmarPlayer - 10.09.2017

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.


Re: A little help. - silverms - 10.09.2017

u need to return 0; at ur onplayertext


Re: A little help. - Meller - 10.09.2017

Provide us the source of ImeIgraca();


Re: A little help. - AmarPlayer - 11.09.2017

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