Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted

Problema intalnita (descriere): la dealership nu il am pus pe categorii (vehicule scumpe/ieftine/sport etc) sunt direct vehiculele trantite acolo si puse in ordine. Problema e ca nu apar toate cand dau scroll down.. se poate face cumva sa fac dialogul ala sa fie citit de tot?
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:buycar(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 329.3534,-1511.9949,36.0391))
    {
        if(playerVariables[playerid][pLevel] >= 3)
        {
            new szDialogString[1200]; //1200
            for(new xf = 0; xf < MAX_DEALERSHIP_CARS; xf++)
            {
                if(dealerVariables[xf][dCarPrice] >= 1)
                { //640
                    format(szDialogString, 640, "%s%s($%s - %d in stock)\n", szDialogString,dealerVariables[xf][dCarName], NumberFormat(dealerVariables[xf][dCarPrice]), dealerVariables[xf][dCarStock]);
                }
            }
            sCar[playerid] = 0;
            ShowPlayerDialog(playerid, DIALOG_BUYCAR, DIALOG_STYLE_LIST, "SERVER: Vehicle Dealership", szDialogString, "Select", "Cancel");
        }
        else
        {
            SCM(playerid, -1, "You don't have level 3 or higher to buy a car!");
        }
    }
    else
    {
        SCM(playerid, -1, "You are not at the DealerShip!");
    }
    return 1;
}


Imagini / Video (optional): http://i.imgur.com/gkcOYza.png
Ati incercat sa rezolvati singur?: am incercat dar nu am reusit

5 answers to this question

Recommended Posts

  • 0
Posted

Unde scrie

format(szDialogString, 640, "%s%s($%s - %d in stock)

la acel 640 de la szDialogString pui alte numere mai mari.

  • Upvote 1

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

  • 0
Posted
new szDialogString[1200]; //1200

Si aici ai modificat?

  • Upvote 1

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

  • 0
Posted

a mers @kSamuel . mersi :) +1

Ai vreo idee despre erorile astea?

le am in server_log 

[16:18:23] [connection] 25.77.77.145:60334 requests connection cookie.
[16:18:24] Incoming connection: 25.77.77.145:60334 id: 0
[16:18:24] [join] Zed has joined the server (0:25.77.77.145)
[16:18:39] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[16:18:39] [debug]  Stack pointer (STK) is 0xE1CCC0, heap pointer (HEA) is 0xE1EE8C
[16:18:39] [debug] AMX backtrace:
[16:18:39] [debug] #0 00000000 in public cmd_buycar () from sg-rp.amx
[16:18:39] [debug] #1 native CallLocalFunction () from samp-server.exe
[16:18:39] [debug] #2 00000000 in public OnPlayerCommandText () from sg-rp.amx
[16:18:42] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[16:18:42] [debug]  Stack pointer (STK) is 0xE1CCC0, heap pointer (HEA) is 0xE1EE8C
[16:18:42] [debug] AMX backtrace:
[16:18:42] [debug] #0 00000000 in public cmd_buycar () from sg-rp.amx
[16:18:42] [debug] #1 native CallLocalFunction () from samp-server.exe
[16:18:42] [debug] #2 00000000 in public OnPlayerCommandText () from sg-rp.amx
[16:18:56] [debug] OnPlayerDisconnect(0, 1)

daca nu las ca deschid un topic nou pt asta.

  • 0
Posted

a mers @kSamuel . mersi :) +1

Ai vreo idee despre erorile astea?

le am in server_log 

Hidden Content

daca nu las ca deschid un topic nou pt asta.

Cu placere,si la asta nu stiu,nu am avut problema,incearca sa faci alt topic si te va ajuta cineva.

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

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.