Quote:
Originally Posted by Dutheil
PHP код:
public OnPlayerText(playerid, text[]) {
new
name[MAX_PLAYER_NAME],
str[145];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(str, sizeof(str), "%s : %s", name, text);
if(strfind(str, "fuck", true) != -1) {
strreplace(str, "fuck", "****", true);
}
SendClientMessageToAll(-1, str);
return 0;
}
|
Error: error 017: undefined symbol "strreplace"