Raised This Month: $ Target: $400
 0% 

how i can do a random array?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ang52
Member
Join Date: Jan 2012
Old 06-27-2012 , 08:16   how i can do a random array?
Reply With Quote #1

this is my code

but i don't know how to random array, i'v been search in the forum.

PHP Code:
#include < amxmodx >

new Array:Games
new gGamesCount;

public 
plugin_natives( )
{
    
register_native"jb_games_register""native_games_register" );
}

public 
native_games_registerpluginparams )
{
    new 
name64 ];
    
get_string1namecharsmaxname ) )
    
    
ArrayPushStringGamesname )
    
    
gGamesCount++
    return 
gGamesCount 1;
}

public 
plugin_init( )
{
    
register_clcmd"say /random""random_array" );
    
    
Games ArrayCreate36);
}

public 
random_arrayid )
{
    
// ok... what next?

thanks for help.
Ang52 is offline
 



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 06:13.


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