SA-MP Forums Archive
[Help] Integer case - 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)
+--- Thread: [Help] Integer case (/showthread.php?tid=662903)



[Help] Integer case - ApolloScripter - 14.01.2019

Hello everyone, I wonder if it is possible, and if it is, how can I do to get an integer value, and add another integer value next, notplus the both.

EX:
PHP код:
new Value 1;
new 
Value2 5;
new 
Result;
// Some stuff here, then
Result 15 // It will be equal to 15, because I want to put them together, but I do not want to make them "6". 



Re: [Help] Integer case - Fratello - 15.01.2019

https://stackoverflow.com/questions/...-integers-in-c


Re: [Help] Integer case - ApolloScripter - 15.01.2019

Quote:
Originally Posted by Fratello
Посмотреть сообщение
Thank you friend


Re: [Help] Integer case - ApolloScripter - 15.01.2019

Quote:
Originally Posted by ******
Посмотреть сообщение
This is an extremely complex operation, revealed only to the best mathematicians in the world. It is called "multiplication", with your example being the worst possible case - "multiplication by 10".
I understand, could you give a better example?


Re: [Help] Integer case - KayJ - 15.01.2019

Quote:
Originally Posted by ******
Посмотреть сообщение
15 = 1 * 10 + 5
I find humour with knowledge here.