Quote:
Originally Posted by xDrugz
How can I replace the letter A with another string?
I try but can not.
PHP Code:
#include <amxmodx> #include <newchars>
public plugin_init() { register_clcmd("say","say_hook") register_clcmd("say_team","say_hook") }
public say_hook(id) { new message[300] = "a" new letter_a[3]; newChar('À', letter_a, sizeof letter_a - 1); copy(message,299,letter_a) replace(message,299,letter_a,"À") }
|
Code:
#include <amxmodx>
#include <newchars>
public plugin_init()
{
register_clcmd("say","say_hook")
register_clcmd("say_team","say_hook")
}
public say_hook(id)
{
new message[300] = "a"
new letter_a[3];
newChar('?', letter_a, sizeof letter_a - 1); // I Couldnt Copy this 'A' thing
replace(message,299,"a", letter_a)
client_print(id, print_chat, "%s", message)
}
i couldnt copy 'A' thing to the compiler it always says "?"