22.06.2010, 20:49
Looks like that code is ysi, silly question are you using ysi? if not use
that should not give that error if u r not using ysi
pawn Код:
stock CountOccurrence(text[],ch) {
new count = 0;
for(new i=0;i<strlen(text);i++) {
if (text[i] == ch) count++;
}
return count;
}
public OnPlayerText(playerid, text[]) {
if(CountOccurrence(text,'.')>2 && CountOccurrence(text,':')>1) {
if(!IsPlayerAdmin(playerid)) {
SendClientMessage(playerid,0xFF0000AA,"Error: We do not allow the posting of IP addresses here");
Kick(playerid);
return 0;
}
}
return 1;

