Raised This Month: $ Target: $400
 0% 

Map menu with fixed map in every map.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-16-2011 , 10:11   Re: Map menu with fixed map in every map.
Reply With Quote #1

Quote:
Originally Posted by GarbageBox View Post
I decided to give up
I had watch your tutorial's. It seems very difficult to me
Getting random values isn't difficult at all.

You basically want to set up all values you want in an array.
Then, as you select values, delete them from the array.

Code:
stock random_range(_min, _max, output[], size) {     new Array:values = ArrayCreate(1), numValues;     for(new i = _min; i <= _max; i++)     {         ArrayPushCell(values, i);         numValues++;     }         new rand, i;     while(i < size && numValues > 0)     {         rand = random(numValues);                 output[i++] = ArrayGetCell(values, rand);                 ArrayDeleteItem(values, rand);         numValues--;     }         ArrayDestroy(values);         return i; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode