Help, onplayertext
#1

Hey guys i have add this

Код:
public OnPlayerText(playerid, text[])
{
 	new textstring[128];
        format(textstring, sizeof(textstring), "[%i] %s", playerid, text);
        SendPlayerMessageToAll(playerid, textstring);
	return 1;
}
And it's send double message



And i want only with player id dont want double

So help me please

Sorry for my bad english
Reply
#2

Use
pawn Код:
return 0;
instead of
pawn Код:
return 1;
Reply
#3

return 1; < This makes OnPlayerText execute the standard text, along with the other options you wanted to be executed.

return 0; < This make OnPlayerText not to execute the standard text, but still executes the option you wanted to be executed.
Reply
#4

Thanks, mate's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)