Tell me how to do that. Please.
#1

I already know how to make random of cars, colors, names, messages, etc. But my question is: How do I do a random number? I want to define them for each gang on my server. The number must be between 0 and 250, since I defined 250 for max gang amount. Thx regards.
Reply
#2

what do you want to do with it?
if it is a id, let it auto increment.
else you can do just a normal random
Reply
#3

I want to put a random ID between 0 and 250, defined for my gang ID's. Since I defined MAX_GANGS 250:
pawn Код:
#define MAX_GANGS 250
I'm a gang system. But also this about ID could be gettin' the actual gang ID and increase +1 for the actual one :P
Reply
#4

Help me... that's simply easy. And I really need it for my system X_X ..'
Reply
#5

Do you mean this?
pawn Код:
new random_number = random(250);
Reply
#6

You can't define something at runtime as its only a macro being replaced with what you want it to replace. So you would have to save them to a variable.
Reply
#7

Quote:
Originally Posted by admantis
Посмотреть сообщение
Do you mean this?
pawn Код:
new random_number = random(250);
thx. I'll try to use it with what I really want. It was what I needed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)