Quote:
Originally Posted by Backwardsman97
Ummmmmm... Try this.
pawn Код:
public OnPlayerText(playerid, text[]) { new string[64]; new File:forbiddenwords = fopen("ForbiddenWords.txt", io_read); while(fread(forbiddenwords, string)) { if(!strcmp(string,text)) { SendClientMessage(playerid, 0xFFFFFFF, "That word is forbidden!!!"); fclose(forbiddenwords); return 0; } } fclose(forbiddenwords); return 1; }
|
Warnings: Loose intendation
And why do you loop the fclose()?