What the problem?!
#1

Код:
public OnPlayerText(playerid, text[])
{
	new chat[200]; new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name,sizeof (name));
	format(chat,sizeof (chat),"%s (%d): %s",name, playerid, text);
	SendPlayerMessageToAll(playerid, chat);
	return 0;
}

Reply
#2

https://sampwiki.blast.hk/wiki/SendPlayerMessageToAll

You don't know what the function does, do you?
Reply
#3

I doubt he does...

pawn Код:
public OnPlayerText(playerid, text[])
{
    new chat[200], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(chat, sizeof(chat), "%s (%d): %s", name, playerid, text);
    SendClientMessageToAll(0xFFFFFFFF, chat);
    return 0;
}
I never even knew that the SendPlayerMessageToAll function existed.
Reply
#4

Use SendClientMessageToAll instead of SendPlayerMessageToAll, I suggest you reading the sa-mp wikipedia before you start scripting.
Reply
#5

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
Use SendClientMessageToAll instead of SendPlayerMessageToAll, I suggest you reading the sa-mp wikipedia before you start scripting.
i will do =)

and thanks DanishHaq
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)