Posted By: mikaldinho
a simple script please! - 03/06/10 12:35
i am making a calculator in 3dgs , but i do not know how to make /,* + and - available at the same time, so you can pick any one of them and it would do that piece of code.
any help would be grateful.
Posted By: rvL_eXile
Re: a simple script please! - 03/06/10 12:58
Uses IF...
Example:
Var choosen;
Function Which_is_chosen
{
if(chosen==1)
{
Var1+=Var2;
}
if(chosen==2)
{
Var1-=Var2;
}
.
.
.
}
Very simple, maybe this is enough for your calc.
cYa Sebastian
Posted By: mikaldinho
Re: a simple script please! - 03/06/10 14:11
thanks Sebastian
i only needed that small piece of code to finish off my calculator school project