Jump to content
  • 0

Problema gamemode edison


Blacky

Question

7 answers to this question

Recommended Posts

  • 0
La 26.11.2017 la 20:19, ASGOOD a spus:

Creeaza o variabila pBank2 si VERIFICA daca trece peste suma de 2kkk sa se stocheze banii in pBank2

nu are nicio treaba asta daca el are o limitare deja la o anumita suma de bani ex la 999999999 ce trece peste iti seteaza pe 0, sau am observat ve un gamemod nu mai stiu minte ce gm era era limitat la pBank sa  fie la max 90000000$

Edited by Geani
verifica comenzile si toate functile care inpedica aceasta problema.

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0
Acum 8 ore, Geani a spus:

nu are nicio treaba asta daca el are o limitare deja la o anumita suma de bani ex la 999999999 ce trece peste iti seteaza pe 0, sau am observat ve un gamemod nu mai stiu minte ce gm era era limitat la pBank sa  fie la max 90000000$

2,147kkk este limita pentru integer, mai sus de atata nu poate urca cu suma maxima de bani deoarece o sa ii returneze o valoare cu minus. Ca sa poata urca cu suma de bani ori imparte  numarul in 2(e o metota pe forum) ori salveaza banii care sunt peste 2.137kkk intr-o alta variabila

Edited by valivaly96
Link to comment
Share on other sites

  • 0

La comanda /deposit respectiv /withdraw exista o limita,daca vrei,o poti mari.

if(PlayerInfo[playerid][pAccount] <= suma) = aceasta este limita de bani pe care o poate avea contul in banca/mana.

Edited by CAiSEN
Link to comment
Share on other sites

  • 0
Acum 5 ore, CAiSEN a spus:

La comanda /deposit respectiv /withdraw exista o limita,daca vrei,o poti mari.

if(PlayerInfo[playerid][pAccount] <= suma) = aceasta este limita de bani pe care o poate avea contul in banca/mana.

Esti pe dinafara, suma maxima este de  2,147,483,647$ datorita unui integer de 32 biti.

Ea poate fi marita datorita unui integer de 64 biti, dar asta inseamna ca trebuie rescrise toate comenzile withdraw/deposit etc pana si payday-ul si /stats.

  • Upvote 1
Link to comment
Share on other sites

  • 0
La 28.04.2018 la 15:20, RGEO. a spus:

Esti pe dinafara, suma maxima este de  2,147,483,647$ datorita unui integer de 32 biti.

Ea poate fi marita datorita unui integer de 64 biti, dar asta inseamna ca trebuie rescrise toate comenzile withdraw/deposit etc pana si payday-ul si /stats.

aa,am inteles

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.

  • Similar Content

    • By ValentinB
      Salut! Ma numesc Valentin si am revenit cu o noua prezentare, probabil putini stiti eu am mai prezentat doua joburi "Bus Driver" "Tram Driver", ei bine, astazi o sa va prezint jobul "Pilot".
      Informatii job: Acest job ruleaza pe gamemode burned, tot ce trebuie sa faci in acest job este sa dai /getjob /work si sa pilotezi avionul la toate destinatiile cerute (Aeroport San Fierro, Aeroport Los Santos, Aeroport parasit LV si in final Aeroport Las Venturas pentru a primi salariul). Jobul este localizat in orasul Las Venturas.
      Informatii suplimentare "In topicul gamemode-uri daca cautati puteti gasi un Gamemode Burned, editat de mine, numite Orange Play. In el ca joburi suplimentare gasiti Bus Driver si Postas. Probabil pe viitor o sa pun un update al gamemode-ului cu ce am mai adaugat + jobul Tram Driver si Pilot.
      Prezentare job Pilot: 
       
    • By ValentinB
      Salutare! Ma numasc ValentinB, recent am avut tentativa de a imi deschide un server de sa:mp, insa din motive personale am renuntat la proiect.
      Gamemode-ul folosit, este un edit facut de mine la gamemode-ul burned.
      Ce am facut eu?
      A fost adaugata comanda /vipname
      A creeat doua joburi (Bus Driver si Postas)
      Am imbunatit anti cheat
      Am rezolvat cateva buguri majore
      Am facut un logo diferit.
      Prezentare & Link download: https://www86.zippyshare.com/v/PoDz92AD/file.html
       
    • By Septarul
      Am facut comenzile, dar nu stiu de ce nu imi returneaza atunci cand un player trece pe langa mine nu ma anunta cu ce viteza a trecut etc. Va las mai in jos comanda
       
      CMD:startradar(playerid, params[]) { if(!IsACop(playerid)) return SendClientMessage(playerid,COLOR_GREY, "Nu faci parte din departament."); if(OnDuty[playerid] != 1) return SendClientMessage(playerid,COLOR_LGREEN, "Eroare: Nu esti la datorie!"); if(!Copcar2(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,COLOR_GREY, "Nu esti intr-o masina a factiunii."); if(Radaron[playerid] == 1) return SendClientMessage(playerid,-1, "Ai deja activat radaru."); new viteza,string[128]; if(sscanf(params, "d",viteza)) return SendClientMessage(playerid,COLOR_GREY, "USAGE: {FFFFFF}/startradar <Speed Limit>"); if(viteza > 200 || viteza < 40) return SendClientMessage(playerid,-1, "Viteza invalida (40-200)."); Radaron[playerid] = 1; Radarlimit[playerid] = viteza; TogglePlayerControllable(playerid, 0); format(string, sizeof(string), "Ai activat radarul. Viteza maxima: %d KM/H.",viteza); SendClientMessage(playerid,COLOR_YELLOW,string); return 1; } CMD:stopradar(playerid, params[]) { if(!IsACop(playerid)) return SendClientMessage(playerid,COLOR_GREY, "Nu faci parte din factiunea politiei."); if(Radaron[playerid] == 0) return SendClientMessage(playerid,COLOR_GREY, "Nu ai radarul activ."); Radaron[playerid] = 0; Radarlimit[playerid] = 0; SendClientMessage(playerid,COLOR_YELLOW,"Ai dezactivat radarul!"); TogglePlayerControllable(playerid, 1); return 1; } function CustomPickups() { new Float:oldposx, Float:oldposy, Float:oldposz; new string[564]; foreach(Player,i) { GetPlayerPos(i, oldposx, oldposy, oldposz); if(Radaron[i] == 1) { foreach(Player, o) { if(IsPlayerInRangeOfPoint(o, 30.0, oldposx, oldposy, oldposz) && GetPlayerState(o) == PLAYER_STATE_DRIVER && OnDuty[o] == 0) { new viteza = Carspeed(o); if(viteza > Radarlimit[i]) { new nameradar[25],nameradar1[25]; GetPlayerName(o,nameradar,sizeof(nameradar)); GetPlayerName(i,nameradar1,sizeof(nameradar1)); format(string, sizeof(string), "%s[ID:%d] is driving with %d km/h, Location: %s, Radar Limit: %d km/h!", nameradar,o,viteza,GetPlayerZone(o),Radarlimit[i]); SCM(i,0xf03337FF,string); format(string, sizeof(string), "You were caught by %s radar with %d km/h, Radar Limit: %d km/h.",nameradar1,viteza,Radarlimit[i]); SCM(o,0xf03337FF,string); } } } } } return 1; } stock Carspeed(playerid,mode = 1) { new Float:Velocity [3]; GetVehicleVelocity ( GetPlayerVehicleID ( playerid ) , Velocity [ 0 ] , Velocity [ 1 ] , Velocity [ 2 ] ) ; return IsPlayerInAnyVehicle ( playerid ) ? floatround ( ( ( floatsqroot ( ( ( Velocity [ 0 ] * Velocity [ 0 ] ) + ( Velocity [ 1 ] * Velocity [ 1 ] ) + ( Velocity [ 2 ] * Velocity [ 2 ] ) ) ) * ( !mode ? 105.0 : 170.0 ) ) ) * 1 ) : 0; } Sper sa primesc cat mai rapid rezolvarea. Multumesc pentru atentie!
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.