Jump to content
  • 0

Question

Posted

Problema:salut , de ceva timp nu reusesc sa dentific problema la sistemul de masini personale deci daca am o masina personala imi merge comanda /v perfect iar daca mai cumpar o masina personala apare bug si la prima masina si la a 2 si nici comanda /v nu mai apare deci mai mult se duplifica masinile va rog respectos sa ma ajutati .
Alte detalii: dau ori ce fel de cod daca mise cere

CMD:v(playerid, params []){
	new string[100],string2[400];
	format(string, sizeof(string), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);
	new test[15]= "",test2[17] = "{00BA19}Unlocked",test3[18] = "{00BA19}Spawned";
	string2 = "Name\t Status\t Spawn\t Class";
	for(new i = 0; i < 4; ++i)
	{
		if Veh[playerid][i][Owner] == pInfo[playerid][pID] *then 
		{
			if Veh[playerid][i][vTax] > 0 *then test = "{BD0000}seized";
			if Veh[playerid][i][Lock] > 0 *then test2 = "{BD0000}Locked";
			if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
			format(string2, sizeof(string2), "%s\n%s%s\t%s\t%s\t%s", string2, g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);
		}
	}
	ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_TABLIST_HEADERS, string, string2, "Select", "Cancel");
	return true;
}

 

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.