Jump to content

Question

Posted

Cand ma urc intr-un vehicul personal, la acea fraza ' This NRG-500 (ID x) is owned by .. ' la toate masinile personale apare id-ul 0 acolo in paranteza. Daca ma urc in el si ma dau jos si tastez /oldcar, imi apare id-ul vehicului dar acolo nu-mi apare, apare doar ID 0. Uitati linia:

	    if(IsAnOwnableCar(newcar))
		{
		    if(CarInfo[OwnedVeh(newcar)][cOwned] == 1)
		    {
				format(string,sizeof(string),"This %s (ID %d) is owned by %s | Age: %d days | Odometer: %.0f km | Insurance: $%d (%d points)",aVehicleNames[CarInfo[OwnedVeh(newcar)][cModel]-400],CarInfo[OwnedVeh(newcar)][cID],CarInfo[OwnedVeh(newcar)][cOwner],CarInfo[OwnedVeh(newcar)][cDays],CarInfo[OwnedVeh(newcar)][cKM],CarInfo[OwnedVeh(newcar)][cInscarprice],CarInfo[OwnedVeh(newcar)][cInsurancecar]);
				SendClientMessage(playerid, COLOR_WHITE, string);
			}
		}

Si la Age acolo la fel, nu se salveaza zilele. Doar daca dau restart imi apare zilele, gen imi ramane ' 1 Day ' chiar daca are 2-3.

5 answers to this question

Recommended Posts

  • 0
Posted

This NRG-500 (ID 0)

0 = id-ul masini din baza de date

Age se salveaza daca ai host iti va merge Age tu il folosesti localhost

Age-ul este pus in gamemode sa se salveze la o anumita ora.

  • 0
Posted

Este pe host, nu pe localhost si au trecut 4 zile si tot 1 Day a ramas, iar dupa ce-am dat restart la server mi-a aratat 4 Days. Iar id-ul acela este id-ul vehiculului prezent pe server, nu are nici-o legatura cu baza de date.

  • 0
  • Administrator
Posted

Tu incarci vehiculele cand un jucator intra pe server sau pe toate odata?

  • 0
Posted
On 5/5/2017 at 2:34 PM, # keNT said:

Nu am inteles la ce te referi, toate odata banuiesc.

pai cum adica, banuiesc?

                        

 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.