Raised This Month: $ Target: $400
 0% 

Maths Genius


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-12-2006 , 19:13   Re: Maths Genius
Reply With Quote #4

suggestion: add more than addition
Code:
switch(random(3))
{
case 0:{
	format(message, length, "+%d",a)
	solution += a
}
case 1:{
	format(message, length, "-%d",a)
	solution -= a
}
case 2:{
	format(temp, length, message)
	format(message, length, "(%s)/%d",temp,a)
	solution /= a
}
case 3:{
	format(temp, length, message)
	format(message, length, "(%s)*%d",temp,a)
	solution *= a
}
}
too lazy to think of how you would add division and multiplication correctly.

original though

edit: look again, i made a way that might work. another suggestion: try to make it a loop that just repeats based on the cvar

Last edited by Emp`; 09-12-2006 at 19:50.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



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 20:03.


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