Hello ! The replacestring dosen't work... here is my string :
PHP Code:
public Action:SayHook(client, const String:command[], args)
{
new String:text[192];
GetCmdArgString(text, sizeof(text));
new startidx = 0;
if (text[0] == '"'){
startidx = 1;
new len = strlen(text);
if (text[len-1] == '"') {
text[len-1] = '\0';
}
}
if(StrContains(text[startidx], "sound", false)!=-1){
EmitSoundToAllAny("misc/soundtest.mp3");
ReplaceString(text, sizeof(text), "sound", "SOUND", false);
}
}
I tried with the default of case sensitive true but it dosen't work.. HELP !