Rory Posted September 1, 2017 Posted September 1, 2017 Cum as putea sa scot limita de 2 miliarde $ din banca? Multumesc!
0 Джо Posted September 2, 2017 Posted September 2, 2017 (edited) Salut,ai 2 posibilitati: 1.In comanda /withdraw ai un if(bani > 2000000) uitate atent pe acolo si vei gasi cva de genul. O stergi si ai rezolvat problema. PS: bani din linia de mai sus am pus eu, la tine este altfel. Eu i-am dat doar o denumire... 2.Intrii pe server mergi in banca scri /withdraw 2000000 si o sa iti apara un mesaj, mergi in gamemode si cauta acel mesaj dupa care il stergi impreuna cu functia care restrictioneaza sa scoti banii din banca. Daca nu te descurci lasa comanda aici si te vom ajuta. Edited September 2, 2017 by Джо
0 Rory Posted September 2, 2017 Author Posted September 2, 2017 (edited) Degeaba scot restrictia aia ca ma da pe minus daca depasesc 2 miliarde in banca. Ma gandeam sa trec banii din tip int in tip string dar nu stiu cate modificari ar trebui aduse... Stiti voi o metoda mai buna? Edited September 2, 2017 by Rory
0 Banditul Posted September 2, 2017 Posted September 2, 2017 Poti incerca sa folosesti acest includ: http://forum.sa-mp.com/showthread.php?t=598933 (nu stiu cum functioneaza sau daca functioneaza) Sau ai putea avea mai multe variabile si cand una ajunge la o anumita suma sa fie folosita cealalta etc etc Sau http://forum.sa-mp.com/showthread.php?t=37299 Sau http://forum.sa-mp.com/showpost.php?p=3685240&postcount=13 Sunt foarte multe posibilitati , trebuie doar sa te gandesti. Sa gandesti logic
0 Джо Posted September 2, 2017 Posted September 2, 2017 In acest caz, posibil ai facuta o restrictie, cel mai sigur un #define imi poti spune te rog ce gamemode folosesti?
0 Rory Posted September 3, 2017 Author Posted September 3, 2017 On 9/2/2017 at 10:30 AM, Banditul said: Poti incerca sa folosesti acest includ: http://forum.sa-mp.com/showthread.php?t=598933 (nu stiu cum functioneaza sau daca functioneaza) Sau ai putea avea mai multe variabile si cand una ajunge la o anumita suma sa fie folosita cealalta etc etc Sau http://forum.sa-mp.com/showthread.php?t=37299 Sau http://forum.sa-mp.com/showpost.php?p=3685240&postcount=13 Sunt foarte multe posibilitati , trebuie doar sa te gandesti. Sa gandesti logic Am gasit si eu astea, ma gandeam ca poate exista si o solutie putin mai simpla. 22 hours ago, Джо said: In acest caz, posibil ai facuta o restrictie, cel mai sigur un #define imi poti spune te rog ce gamemode folosesti? Nu e nicio restrictie, pe SA:MP poti detine maxim 2.147.000.000 in banca, asta e limita variabilei Sunt curios daca exista o posibilitate de a scoate restrictie, cei de pe bugged am vazut ca au scos-o.
0 Banditul Posted September 3, 2017 Posted September 3, 2017 Acum 18 minute, Rory a spus: Am gasit si eu astea, ma gandeam ca poate exista si o solutie putin mai simpla. Nu e nicio restrictie, pe SA:MP poti detine maxim 2.147.000.000 in banca, asta e limita variabilei Sunt curios daca exista o posibilitate de a scoate restrictie, cei de pe bugged am vazut ca au scos-o. Nu o poti scoate pentru ca e limita unui integer pe 32 bit , n-ai csf. Te poti gandi doar la o modalitate de a trece pe langa , si o parte din ele le-am mentionat....Daca gasesti tu alte posibilitati....Dar nu , nu poti sparge acea limita, doar daca se va face sa-mp pentru 64 bit(nu se va intampla ) sau face Kalcor un long long integer precum e in acel include.... 1
Question
Rory
Cum as putea sa scot limita de 2 miliarde $ din banca?
Multumesc!
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now