Quote DavidJr (
)
new cName[32]; get_user_name(iIndex, cName, sizeof (cName)-1);
client_print(iIndex, print_chat , "%s: Aku suka memakai popok lochh", cName);
Btw, salah kamar, lain kali bikin thread support disini http://csfederation.ucoz.com/forum/155
Code
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say monyet" , "badword")
public badword(id) {
new cName[32];
get_user_name(id, cName, sizeof (cName)-1);
client_print(id, print_chat , "%s: Aku suka memakai popok lochh", cName);
}
terjadi error Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team
Warning: Loose indentation on line 16
Error: Invalid expression, assumed zero on line 16
Error: Undefined symbol "badword" on line 16
Error: Undefined symbol "id" on line 18
Warning: Expression has no effect on line 18
Warning: Expression has no effect on line 18
Error: Expected token: ";", but found ")" on line 18
Error: Invalid expression, assumed zero on line 18
Error: Too many error messages on one line on line 18
Compilation aborted.
6 Errors.
apakah karena salah peletakan code?