Client_Print Problem - Forum
Counter-Strike Federation Welcome , Leecher | RSS | Saturday, 10 December 16
A Place Where Player Becomes Developer Home | Sign Up | Log In
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum » AMX Mod X » Scripting » Code Snippets/Tutorials » Client_Print Problem
Client_Print Problem
Grade: Copral XenionDate: Friday, 24 July 15, 8:56 PM | Message # 1
Copral
Clan: Member
Experience: 27
Status: Offline

Code
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say monyet" , "badword")
}

public badword(id) {
    client_print(id , print_chat , "Aku suka memakai popok lochh")
    return PLUGIN_HANDLED;
}


Tapi yang tampil hanya seperti say dari server

Contoh "Aku suka memakai popok lochh"

cara agar print tersebut menampilkan client yang mengetikkan teks itu gimana ?

Contoh , Xenion : Aku suka memakai popok lochh

Mungkin ada yang lebih tau hehe,  Thanks before
 
Grade: Commander DavidJrDate: Friday, 24 July 15, 8:58 PM | Message # 2
Commander
Clan: Executive
Experience: 2256
Status: Offline
Code
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


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral XenionDate: Friday, 24 July 15, 9:38 PM | Message # 3
Copral
Clan: Member
Experience: 27
Status: Offline
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?
 
Grade: Commander DavidJrDate: Friday, 24 July 15, 9:53 PM | Message # 4
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote Xenion ()
apakah karena salah peletakan code?
Kurang close bracket itu di plugin_init


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral XenionDate: Saturday, 25 July 15, 1:11 AM | Message # 5
Copral
Clan: Member
Experience: 27
Status: Offline
Quote DavidJr ()
Kurang close bracket itu di plugin_init
oh gitu, sip dah bisa
terus bang david

Cara ngebalikkin color Teamnya gimana ya ?

tadi pas ngetikkin itu . 

jadi  Xenion : aku suka memakai popok lochhh <== nicknya berubah jadi warna orange kekuningan gitu , bukan biru/merah
 
Grade: Commander DavidJrDate: Saturday, 25 July 15, 8:30 AM | Message # 6
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote Xenion ()
oh gitu, sip dah bisaterus bang david

Cara ngebalikkin color Teamnya gimana ya ?

tadi pas ngetikkin itu .

jadi Xenion : aku suka memakai popok lochhh <== nicknya berubah jadi warna orange kekuningan gitu , bukan biru/merah
Pake color chat itu, donlot .inc nya di forums.alliedmods.net


posted via BlackBerry

Personal Site | CSF Website
 
Forum » AMX Mod X » Scripting » Code Snippets/Tutorials » Client_Print Problem
Page 1 of 11
Search:

Mirum
sample map