SA-MP Forums Archive
calculating inside strings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: calculating inside strings (/showthread.php?tid=140266)



calculating inside strings - oggylt - 08.04.2010

Ok today i got pwned by pawn when i din`t knew how to make universal calculator like i enter string "(5+5)/2" and placing it into
Код:
answer=string
in my eyes that should look
Код:
answer=(5+5)/2
but it looked a way different, so have anyone any sugestions how to calculate string it can by step b step method like "chose: symbol or number ", "select symbol", "symbol added" and so on, hope you understand me and thanks in advance
step by step i mean that i pick number:
Код:
formula=15
then pick symbol +-*/ () sqrt this time (
Код:
formula=15(9
then symbol *
and then 9
and lastly )
i press finish
and i get answer to that one formula
Код:
formula=15(9*9)



Re: calculating inside strings - oggylt - 09.04.2010

ok.. that's impossible, last bump


Re: calculating inside strings - Grim_ - 09.04.2010

Woah... can explain more.. simple?


Re: calculating inside strings - oggylt - 09.04.2010

i want to make program wich works any way or step by step but it should do that if you enter any matematical formulait solve it by reading inputing it or by putting formula step by stem as i xplained before


Re: calculating inside strings - [MWR]Blood - 09.04.2010

With a few words... You want a math system for your server?


Re: calculating inside strings - oggylt - 09.04.2010

Not in server i'm making c program math homeork maker for my brother i made lots formulas equations discriminants and so on, and if i'll learn how to manke in server i'll transfer it to c. why not in C forums? i'm banned from them , so any ideas,


Re: calculating inside strings - oggylt - 10.04.2010

now i beleave that's possible dont give me hopes (replies) and i wont bump it