SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/01/2019, 11:51 PM   #1
ApolloScripter
Huge Clucker
 
ApolloScripter's Avatar
 
Join Date: Sep 2018
Posts: 228
Reputation: 7
Default [Help] Integer case

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 Code:
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". 
__________________
ApolloScripter is offline   Reply With Quote
Old 15/01/2019, 12:08 AM   #2
Fratello
Huge Clucker
 
Join Date: May 2016
Location: Howard University
Posts: 311
Reputation: 38
Default Re: [Help] Integer case

https://stackoverflow.com/questions/...-integers-in-c
Fratello is offline   Reply With Quote
Old 15/01/2019, 01:05 AM   #3
ApolloScripter
Huge Clucker
 
ApolloScripter's Avatar
 
Join Date: Sep 2018
Posts: 228
Reputation: 7
Default Re: [Help] Integer case

Quote:
Originally Posted by Fratello View Post
Thank you friend
__________________
ApolloScripter is offline   Reply With Quote
Old 15/01/2019, 03:56 AM   #4
ApolloScripter
Huge Clucker
 
ApolloScripter's Avatar
 
Join Date: Sep 2018
Posts: 228
Reputation: 7
Default Re: [Help] Integer case

Quote:
Originally Posted by ****** View Post
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?
__________________
ApolloScripter is offline   Reply With Quote
Old 15/01/2019, 04:20 PM   #5
KayJ
Gangsta
 
KayJ's Avatar
 
Join Date: Apr 2014
Posts: 678
Reputation: 64
Default Re: [Help] Integer case

Quote:
Originally Posted by ****** View Post
15 = 1 * 10 + 5
I find humour with knowledge here.
KayJ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with getting max integer. m1kas Scripting Help 3 08/12/2017 11:01 AM
Integer help NealPeteros Scripting Help 7 26/12/2016 03:59 AM
Integer help Lidor124 Scripting Help 3 09/04/2014 08:37 PM
[REP+] Dialog problem, case 1 causing errors, case 2 and 3 works fine, cant find problem niels44 Scripting Help 0 21/04/2012 06:44 PM


All times are GMT. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.