Jump to content
  • 0

Ajutor.


# keNT

Question

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.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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.

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.

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