[Random Amounts]
#1

I am working on a robbery system, so when you're at a certain point /stickup, yada, yada, yada..
The question is, how can I give the player a random amount of money between, $100-$2500?
Reply
#2

blahblah = random(2400) + 100;

Don't quote me on random(), might be rand for all I can remember at this time of night..
Reply
#3

Quote:
Originally Posted by Weirdosport
blahblah = random(2400) + 100;

Don't quote me on random(), might be rand for all I can remember at this time of night..
Doesn't work? ..
Anybody?
Reply
#4

pawn Код:
#include <a_samp>
new bob;
public OnFilterScriptInit()
{
    bob = random(2400) + 100;
    printf("%i", bob);
    return 1;
}
8 lines of code says it does..
Reply
#5

Sorry. Missed the 'new' at the top. I just woke up.
Thanks for your help mate.
Reply
#6

No problem, I'm just about to un-wake-up.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)