Guest Sniko` Posted November 9, 2008 Posted November 9, 2008 NOTE: NOT TESTED Place in header or in any file You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Any problems reply and ill get back into it. Quote
daveaite Posted November 9, 2008 Posted November 9, 2008 Re: [ANY] Random Comment MTG Coded this. Quote
Guest Sniko` Posted November 9, 2008 Posted November 9, 2008 Re: [ANY] Random Comment Really, welll great minds think alike, Ive just coded it now :lol: Shall i remove? Quote
Karlos Posted November 9, 2008 Posted November 9, 2008 Re: [ANY] Random Comment This isn't hard to code tho. Quote
daveaite Posted November 9, 2008 Posted November 9, 2008 Re: [mccode] Random Comment True, and theres no point in removing it, I haven't seen it on here before. Quote
HITMAN 17 Posted November 9, 2008 Posted November 9, 2008 Re: [mccode] Random Comment where abouts in header Quote
Joel Posted November 9, 2008 Posted November 9, 2008 Re: [mccode] Random Comment NOTE: NOT TESTED Place in header or in any file You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Any problems reply and ill get back into it. Wrong! Should be something like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
HITMAN 17 Posted November 9, 2008 Posted November 9, 2008 Re: [mccode] Random Comment i tryed adding it all i get is a line saying echo "Admin [1] Says:"; = rand(1,3); if( == 1); { echo "Enjoy the game and please donate"; } elseif( == 2); { echo "Enjoy playing & Remember to vote!"; } elseif( == 3); { echo "Thanks For Signing Up!"; } Quote
POG1 Posted November 9, 2008 Posted November 9, 2008 Re: [ANY] Random Comment MTG Coded this. its only simple how can you know? a faster way would be to use $msg = 'Admin [1] Says: '; switch(mt_rand(1,3)) { case 1: $msg .= 'Enjoy the game and please donate'; break; case 2: $msg .= 'Enjoy playing & Remember to vote!'; break; case 3: $msg .= 'Thanks For Signing Up!'; beak; } echo $msg; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.