Random Score
#6

Quote:
Originally Posted by greentarch
View Post
pawn Code:
stock randomEx(min, max)
    return (random(max - min + 1) + min);
Usage:
pawn Code:
new
    randScore = randomEx(25, 50);
SetPlayerScore(playerid, GetPlayerScore(playerid) + randScore);
Quote:
Originally Posted by iFarbod
View Post
pawn Code:
#define rand(%1, %2) random(%2 - %1) + %1
Then What's Next ? Any Variable connected to the Define ?
Explain pls
Reply


Messages In This Thread
Random Score - by NewbieTester - 13.08.2014, 12:19
Re: Random Score - by Norrin - 13.08.2014, 12:26
Re: Random Score - by greentarch - 13.08.2014, 12:27
Re: Random Score - by NewbieTester - 13.08.2014, 12:32
Re: Random Score - by iFarbod - 13.08.2014, 12:38
Re: Random Score - by NewbieTester - 13.08.2014, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)