Raised This Month: $ Target: $400
 0% 

Randomise


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NzGamers
Member
Join Date: Jul 2009
Old 06-27-2010 , 02:22   Randomise
Reply With Quote #1

How do i make it randomise from this

PHP Code:
new const sz_ShopItems[][] = 
{
    
"Item 1",
    
"Item 2",
    
"Item 2"
}; 
i want it to random these Item.

normally i can just do


switch (random_num(1, 3))
{
case 1:
{
NzGamers is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-27-2010 , 02:24   Re: Randomise
Reply With Quote #2

Code:
sz_ShopItems[random(sizeof sz_ShopItems)]
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 14:43.


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