25.02.2018, 15:37
why it's letting me to say the same text?
the lasttext is good formated, but strcmp why is not detectig that is 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; }