Page 1 of 1
Reikia pagalbos del random health davimo.
Posted: 2011 Apr 30 18:38
by KieC
As moku pasidaryti kad random health duotu nuo tiek iki tiek.
Bet man reikia kad duotu random simtais tarkim as random pasidares nuo random_num(100,500).
Bet as noriu kad gautu health 100, 200, 300, 400, 500. Jei sitaip imanoma?
Nes taip gauni tarkim 127, 264, 234, o man nereikia kad sitaip gautu health.
Re: Reikia pagalbos del random health davimo.
Posted: 2011 Apr 30 18:57
by xFrostas
Galbūt
Code: Select all
new const Health[][] ={ "100", "200", "300", "400"} new Random_Health = Health[random(sizeof Health)]) set_user_health(id, Random_Health)
Re: Reikia pagalbos del random health davimo.
Posted: 2011 Apr 30 19:26
by newb
Code: Select all
set_user_health(id, random_num(1, 5) * 100)
^^
Ir beje
Code: Select all
new const Health[][] ={ "100", "200", "300", "400"}
Cia string...
Re: Reikia pagalbos del random health davimo.
Posted: 2011 Apr 30 21:21
by KieC
newb kur davei ta koda viskas gerai veikia bet kartais buginasi buna duoda nesimtais bet daugiau. buna kad: 144, ir t.t.. tai tiek
Re: Reikia pagalbos del random health davimo.
Posted: 2011 Apr 30 21:38
by newb
Teoriskai to neimanoma.
Re: Reikia pagalbos del random health davimo.
Posted: 2011 Apr 30 22:09
by hleV
CS HP HUD'as rodo iki 255 (AP iki 512 atrodo), duodant daugiau vėl rodo nuo 0.