Jump to content
  • 0

Problema GivePlayerMoney


InceMan

Question

Problema intalnita (descriere): cand duc servieta imi da bani aia dupa 1 min mi-ea inapoi si nu stiu de-ce 
Ero(area / rile) / warning-(ul / urile):nu sunt erori
Liniile de cod / sursa / script-ul(obligatoriu):if(playerid == CashboxOwner)
    {
        PlayerPlaySound(playerid, 1054, 0, 0, 0);
        KillTimer(DropValueTimer);
        new str[128], pName[MAX_PLAYER_NAME];
        if(mode == 1)
        {
            DisablePlayerCheckpoint(playerid);
        }
        CashboxOwner = INVALID_PLAYER_ID;
        GetPlayerName(playerid, pName, sizeof(pName));
        format(str, 128, "%s (ID: %d) a livrat servieta si a castigat $%d", pName, playerid, CashboxValue);
        SendClientMessageToAll(0xFFD700AA, str);
        GivePlayerMoney(playerid, CashboxValue);
        format(str, 128, "~y~Felicitari! ~n~ Ai castigat ~n~~g~$%d", CashboxValue);
        GameTextForPlayer(playerid, str, 4000, 3);
        SendClientMessageToAll(0xFFD700AA, "Un nou joc va incepe in 3 minute!");
        SetTimer("StartNewCashboxGame", 180000, 0);
        IsGameStarted = 0;
        if(IsTextdrawCreated == 1)
        {
            TextDrawDestroy(ValueText);
            IsTextdrawCreated = 0;
        }
    }
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:da

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Ce GM folosesti?Cumva GM BigZone sau altul asemanator cu Bugged?

Daca da,atunci trebuie sa folosesti GivePlayerCash,nu GivePlayerMoney

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Link to comment
Share on other sites

  • 0
31 minutes ago, TKCode said:

Ce GM folosesti?Cumva GM BigZone sau altul asemanator cu Bugged?

Daca da,atunci trebuie sa folosesti GivePlayerCash,nu GivePlayerMoney

Gamemod bugged pai GivePlayerCash imi da eroare ca am incercat

 

Edited by Geani

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0

Ce eroare iti da?

Si vezi ca e posibil sa nu faca salvarea in mysql asta cu banii.

Eventual poti sa te uiti dupa cum e facut la un job,te uiti la un job cum e facut pt a da banii la playeri si faci si tu ceva de genul pe asta cu servieta

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Link to comment
Share on other sites

  • 0

playerVariables[playerid][pMoney] += cashr;

Vezi asta?Trebuie sa faci ceva de genul asta la servieta,dar vezi ca in loc de cashr pui CashboxValue

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Link to comment
Share on other sites

  • 0
4 minutes ago, TKCode said:

Ce eroare iti da?

Si vezi ca e posibil sa nu faca salvarea in mysql asta cu banii.

Eventual poti sa te uiti dupa cum e facut la un job,te uiti la un job cum e facut pt a da banii la playeri si faci si tu ceva de genul pe asta cu servieta

am ceva de geniu SetPlayerCheckpoint(playerid, -385.85,-1319.85,27.61,8.0);
            new cashr = 5000;
            playerVariables[playerid][pMoney] += cashr;
            format(string, sizeof(string), "~r~Ai castigat ~n~~w~ $%d!", cashr);
            GameTextForPlayer(playerid, string, 3000, 1);
        }

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.