[ASK]Get String
2 posters
Halaman 1 dari 1
[ASK]Get String
question=get_string("Which one you want to set#Ex:Money,Kills,Life,Won,Lose","Money")
if question="Money"
{
global.money=get_string("How many money do you earn?","500")
}
else if question="Kills"
{
global.kills=get_string("How many monster do you kill?","10")
}
else if question="Life"
{
global.life=get_string("How many lives left do you have?","1")
}
else if question="Won"
{
global.won=get_string("How many times you won?","2")
}
else if question="Lose"
{
global.lose=get_string("How many times you lose?","0")
}
nah, aku mau variable tersebut bukan di-set jadi jumlahnya, tapi ditambah dengan jumlahnya
misal
aku dah coba kaya gini
global.lose+=get_string("How many times you lose?","0")
if question="Money"
{
global.money=get_string("How many money do you earn?","500")
}
else if question="Kills"
{
global.kills=get_string("How many monster do you kill?","10")
}
else if question="Life"
{
global.life=get_string("How many lives left do you have?","1")
}
else if question="Won"
{
global.won=get_string("How many times you won?","2")
}
else if question="Lose"
{
global.lose=get_string("How many times you lose?","0")
}
nah, aku mau variable tersebut bukan di-set jadi jumlahnya, tapi ditambah dengan jumlahnya
misal
aku dah coba kaya gini
global.lose+=get_string("How many times you lose?","0")
Pinneaple Studios- GM Intermediate
-
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D
Re: [ASK]Get String
kalo kaya gitu ntar kalo awalnya global.lose = "3" trus masukin "2", hasilnya jadi "32"
jadi harusnya gini:
global.lose+=get_integer("How many times you lose?",0)
jadi harusnya gini:
global.lose+=get_integer("How many times you lose?",0)
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: [ASK]Get String
kalo begini jadi apa fungsinya?
global.lose=get_integer("How many times you lose?",0)
global.lose=get_integer("How many times you lose?",0)
Pinneaple Studios- GM Intermediate
-
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D
Re: [ASK]Get String
nilainya diset, bukan ditambah
mis. awalnya 3, dimasukin 2 jadi 2
mis. awalnya 3, dimasukin 2 jadi 2
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: [ASK]Get String
jadi get_string ama get_integer berbeda
oh..
seep
-_-_-_-_-KUNCI_-_-_-_-_-
oh..
seep
-_-_-_-_-KUNCI_-_-_-_-_-
Pinneaple Studios- GM Intermediate
-
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D
Similar topics
» String Distortion
» Encrypt Decrypt String
» [Beginner-Intermediate] String
» Cara bikin string letter jadi real (NO, resource name!)
» Encrypt Decrypt String
» [Beginner-Intermediate] String
» Cara bikin string letter jadi real (NO, resource name!)
Halaman 1 dari 1
Permissions in this forum:
Anda tidak dapat menjawab topik