Raised This Month: $ Target: $400
 0% 

Map menu with fixed map in every map.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-15-2011 , 14:33   Re: Map menu with fixed map in every map.
Reply With Quote #1

Quote:
Originally Posted by Blue Snake. View Post
PHP Code:
public randoms(const start, const enddest[], const len)
{
    new 
numberbool:found=false
    
for(new i=0;i<len;i++)
    {
        while(!
found)
        {
            
found=false
            number
=random_num(startend)
            for(new 
j=0;j<i;j++)
                if(
number!=dest[j])
                {
                    
found=true
                    
break;
                }
            
dest[i]=number
        
}
    }

Not tested.
I don't understand your code
Can you tell more detail about it and I update a little of my code in #1.
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox 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