Const, Formatex , Charset - 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 » Scripting Help » Const, Formatex , Charset
Const, Formatex , Charset
Grade: Copral XenionDate: Sunday, 26 July 15, 11:35 PM | Message # 1
Copral
Clan: Member
Experience: 27
Status: Offline
Const, Formatex , Charset 

Saya ingin tanya , apasih kegunaan dari Const, Formatex, Charset? dan termasuk apakah 3 ini ? apakah data type , atau dll?

Thanks Before
 
Grade: Commander DavidJrDate: Monday, 27 July 15, 11:12 AM | Message # 2
Commander
Clan: Executive
Experience: 2256
Status: Offline
const itu data type, formatex dan charset cuma function

const itu konstanta, alias bilangan tetap. e.g:

Cara pakai formatex:
Code
new cName[32];
formatex(cName, charsmax(cName), "Test");


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral XenionDate: Monday, 27 July 15, 1:21 PM | Message # 3
Copral
Clan: Member
Experience: 27
Status: Offline
Quote DavidJr ()
new cName[32]; formatex(cName, charsmax(cName, "Test"));
jadi nanti outputnya gimana?
charsmax itu fungsinya buat apa?
 
Grade: Commander DavidJrDate: Tuesday, 28 July 15, 3:36 PM | Message # 4
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote Xenion ()
jadi nanti outputnya gimana?charsmax itu fungsinya buat apa?
Output nya ya sesuai string yang dimasukin, charmax itu jumlah array variabel


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral XenionDate: Friday, 31 July 15, 3:05 PM | Message # 5
Copral
Clan: Member
Experience: 27
Status: Offline
Oke sip bang , mumpung ini sedikit menyinggung data type , 
gw pengen nanya ,
Perbedaan mencolok antara Global Variable dengan Variable biasa itu apa ya?

Added (31 July 15, 3:05 PM)
---------------------------------------------

Quote Xenion ()
charmax itu jumlah array variabel
dan juga charmax bisa diganti dengan sizeof gak ?

soalnya sizeof juga ukuran/jumlah array variable kan ?
 
Grade: Commander DavidJrDate: Friday, 31 July 15, 10:07 PM | Message # 6
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote Xenion ()
Oke sip bang , mumpung ini sedikit menyinggung data type , gw pengen nanya ,
Perbedaan mencolok antara Global Variable dengan Variable biasa itu apa ya?
Beda peletakan nya doang, global itu variabel nya keliatan, variabel biasa cm di deklarasi di suatu function

Quote Xenion ()
dan juga charmax bisa diganti dengan sizeof gak ?
Bisa


posted via BlackBerry

Personal Site | CSF Website
 
Forum » AMX Mod X » Scripting » Scripting Help » Const, Formatex , Charset
Page 1 of 11
Search:

Mirum
sample map