Raised This Month: $ Target: $400
 0% 

Modified Advanced Roll the dice...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 04-24-2007 , 15:33   Re: Modified Advanced Roll the dice...
Reply With Quote #3

Ah.. such a long copy and paste...
I will see that in a second
You should have attached the file

EDIT:
Ok...

the error from 625 was that you do not start with "else if"
first is "if" than "else if"

on line 866 you forgot to put the ID for who the message was going to, i put it to 0 (everybody)


And one more thing, on 625, instead of doing
PHP Code:
if(== 1){
 
//stuff 1
} else if ( == 2){ 
 
//stuff 2
} else if ( == 3){ 
 
//stuff 3

You could have done:
PHP Code:
switch(a){
 case 
1:{
  
//stuff 1
 
}
 case 
2:{
  
//stuff 2
 
}
 case 
3:{
  
//stuff 3
 
}
 case 
4,5:{
  
//if a is 4 or 5
 
}
 case 
.. 10:{
  
//if a is between 6 and 10
 
}
 default:{
  
//If any of above
 
}

Attached Files
File Type: sma Get Plugin or Get Source (rollthedice.sma - 940 views - 122.5 KB)
__________________
http://www.nican132.com
I require reputation!

Last edited by Nican; 04-24-2007 at 15:45.
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
 



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:38.


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