Jump to content
  • 0

Orice valoare mai mare de 2147483647 mi-o da pe minus sau alte minuni


Wreeper

Question

De exemplu cand imi dau 3000000000 bani (3kkk), imi da bani pe minus in loc sa-mi dea 3kkk.

Stiu ca e din cauza la 32-bit, am bagat si LY.inc insa problema inca persista.

Ce as putea sa fac sa scot aceasta limita?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
38 minutes ago, irinel77 said:

Iti recomand sa te folosesti de BigInt-ul lui Matt, eu il folosesc de cand l-a pus pe forum si am priceput foarte repede cum sa-l folosesc, ai si un mic tutorial in .inc.

https://github.com/ItssMatt/samp/blob/master/bigint

Și cât de eficient este?

 

Link to comment
Share on other sites

  • 0
1 hour ago, irinel77 said:

Iti recomand sa te folosesti de BigInt-ul lui Matt, eu il folosesc de cand l-a pus pe forum si am priceput foarte repede cum sa-l folosesc, ai si un mic tutorial in .inc.

https://github.com/ItssMatt/samp/blob/master/bigint

nu așa funcționează numerele pe 64 de biți :)) varianta lui HPQ pare mai ok, având operatorii de bază și lucrând binar.  (ca sfat, ai putea trece logica pe C++ și să adaugi unit teste).

  • Thanks 1
Link to comment
Share on other sites

  • 0
3 hours ago, HPQ123 said:

Și cât de eficient este?

 

Pare destul de eficient, momentan...

Poate o sa-l incerc si pe al tau.

 

3 hours ago, segmentationfault said:

nu așa funcționează numerele pe 64 de biți :)) varianta lui HPQ pare mai ok, având operatorii de bază și lucrând binar.  (ca sfat, ai putea trece logica pe C++ și să adaugi unit teste).

Mersi de sfat, insa am preferat ceva mai simplu, nu sa ma folosesc de nu stiu cati operatori si alte chestii. 

Edited by irinel77
Link to comment
Share on other sites

  • 0
1 hour ago, irinel77 said:

Pare destul de eficient, momentan...

Poate o sa-l incerc si pe al tau.

 

Mersi de sfat, insa am preferat ceva mai simplu, nu sa ma folosesc de nu stiu cati operatori si alte chestii. 

Nu stiu dar eu cred ca este prea usor de instalat in gm-ul tau, e adevarat ca nu e un intreg tutorial poate o sa fac unul.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.