30.08.2009, 11:52
Quote:
Originally Posted by JoeBullet
You could use like this:
Code:
code btw. strfind loops thru string anyway... |
I would use...
Code:
public OnPlayerText(playerid, text[]) { new i; while(text[i]) { if(191 <= text[i] <= 255) { SendClientMessage(playerid, 0xFF0000EE, "Please speak english in the main chat."); return 0; } i++; } return 1; }