textdraw random amount
#1

how to change text in a textdraw to random number?

i have

pawn Код:
new Text:Test1;
GameModeInIt
pawn Код:
new money1 = random(5000);
new money2 = random(5000);
new money3 = random(5000);

Test1 = TextDrawCreate(200.000000,215.000000,"$ %s~n~$ %s~n~ %s", money1, money2, money3);
i know this is not right but not sure how to make it work

i trying to make those %s be changeable by a random somewhere else, or like, the amount thats already there + random amount

can someone please help me get started
Reply
#2

money1 etc, are integers, not strings. So it's not %s, but %i or %d. Read the manual next time.
Reply
#3

%s is for names
Reply


Forum Jump:


Users browsing this thread: