I'm trying to insert safe data in my data base and I have written a function which replaces a few invalid symbols, I don't know why but I'm getting interesting strings which I can't copy+paste here because It can't be copied !
PHP Code:
public client_putinserver(id){
static name[32]
get_user_name(id, name, 31)
formatex(name, 31, safe_string(name))
server_print(name)
}
public safe_string(string[]){
new buffer[32]
copy(buffer, 31, string)
replace_all(buffer, charsmax(buffer), "^'", "")
replace_all(buffer, charsmax(buffer), "^"", "")
replace_all(buffer, charsmax(buffer), "\", "")
replace_all(buffer, charsmax(buffer), "/", "")
return buffer
}