Posts: 249
Threads: 51
Joined: Aug 2017
Reputation:
0
i know its confusing title but...
i am making events and there are 3 possible places with rewards.
1st place 1k+random out of 300
2nd place 600+random out of 200
3rd place 300+random out of 100
that means if like guy wins race and he gets for example 1241$
next time he wins same race he gets 1163$
in every case he gets at least 1000 and max 1300$
how to do it
Posts: 311
Threads: 27
Joined: May 2016
Reputation:
0
If I tell you how to make it , will you end up requesting the code?
Posts: 325
Threads: 5
Joined: Jun 2017
You won't learn to code if you don't put effort on it. You already said what you want, why asking for it? The
Scripting Help topic is for uncommon errors, that you can't solve yourself, not for code begging. I am sure that Kraeror don't even know what "stock" means. "kinda kraeror only deserves it", he just gave you the code, when Fratello tried to make you learn how to do it. What you will do in the real life when you will be facing a problem? Asking others to find solutions for you, or think yourself about them.
Just to "feed" your copy-paste hungry:
PHP код:
RandomBased(base,max)
{
new out = base + random(max);
return out;
}
So the solution wasn't simple?
Posts: 311
Threads: 27
Joined: May 2016
Reputation:
0
" i do copy paste but then i go all over code and edit it as i want" I can only speculate your editing. Translating from English to Serbian right?
10Min has given you the code example, you didn't even discuss about it. What does it mean? It means you're looking for code. Another example is ship include. You was looking for a ship with planes on it right? I gave you include for SHIPS ONLY. You have replied 'there are no planes on it'. You didn't even try to add a plane or two.
I'm going to a programming school. We're learning algorithms. It's not really easy as you may think. I spent two hours solving my programming homework. I didn't post it on forums. Each time you do something on your own (e.g fix) you raise your orientation. You're doing nothing. You will make a same topic with a new errors without fixing previous.