Random num? o_o
#1

I can't understand what's wrong with this piece of code:

Код:
new randnum = 1000 + random(8999);
new voonum = randnum;
it "crashes" my pawno. (It says the instruction can't be "read").

Please, i really need help at this
Reply
#2

the random() function is called at top of your script, try:
top of script
Код:
new randnum;
new voonum;
inside any function()
Код:
randnum=1000+random(8999);
voonum=randnum;
Reply
#3

Why don't you just do

Код:
new voonum = 8999+random(8999);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)