#1

why it's letting me to say the same text?

Код:
public OnPlayerText(playerid, text[])
{
	new string[255], lasttext[255];
	if(strcmp(lasttext, text, true) return 0;
	format(lasttext, 255, text);
	format(string, sizeof(string), "%s: %s", pInfo[playerid][pName], text);
	ProxDetector(30.0, playerid, string, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE);
	return 0;
}
the lasttext is good formated, but strcmp why is not detectig that is the same text
Reply
#2

FIXED! It's defining lasttext every time when i send a message and that's why
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)