Jump to content

Question

Posted

Salut , ai si eu un server cu fastevent , daca scrii repede un cuvant castigi o suma de bani , doar ca la mine castiga 5k si eu vreau 500$ , am pus la reactiontest = 500; doar ca eu as dori sa fac o suma random intre 500$ si 1000$ , cum ar trebui sa fac?

Dac? a? face în felul urm?tor

{

new Rstr[] = "aAbBcCdDeEfFgGhHIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789";//Caractere Posibile la ReactionTest

for (new i = 0; i < 9; i++)ReactionString = Rstr[random(sizeof(Rstr))];

ReactionCash = random ( 1000 ) ;

}

Suma care o prime?te respectivul care câ?tig? pân? în 1000$ dar cum fac s? câ?tige între 400$ ?i 1000$ de exemplu?

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.