SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 29/04/2012, 07:27 PM   #1
'Duallity
Big Clucker
 
'Duallity's Avatar
 
Join Date: Apr 2012
Location: Grajaú-Ma
Posts: 188
Reputation: 9
Default [AJUDA] Bug na concessionária

Bom,estou editando um Gamemod à algumas semanas,ja corrigi diversos bugs,mais nao tou conseguindo desbugar esse.
Eu vou na concessionária e compro um carro,depois digito o comando /carmenu e escolho estacionar,o carro é estacionado mais quando dou respawn nele,ele nao fica no local que estacionei e sim em SAN FIERRO

prints:
http://imageshack.us/g/232/print10a.png/
Code:
Code:
 if(dialogid == 540)
	{
		if(response)
		{
			if(listitem == 0)
			{
              new vehicleid = GetOwnedVehicleID(playerid);
		      if (vehicleid == INVALID_VEHICLE_ID) return SendClientMessage(playerid, COLOR_RED, "[Erro] Você não possui Veiculo.");
		      VehicleInfo[vehicleid][vPark] = 1;
		      GetVehiclePos(vehicleid, VehicleInfo[vehicleid][vPX], VehicleInfo[vehicleid][vPY], VehicleInfo[vehicleid][vPZ]);
		      GetVehicleZAngle(vehicleid, VehicleInfo[vehicleid][vPA]);
		      format(string, sizeof string, "[Wang Cars] Você estacionou seu Veiculo neste local.");
		      SendClientMessage(playerid, COLOR_YELLOW, string);
		    }
			else if(listitem == 1)
			{
			  new vehicleid = GetOwnedVehicleID(playerid);
		      if (vehicleid == INVALID_VEHICLE_ID) return SendClientMessage(playerid, COLOR_RED, "[Erro] Você não possui Veiculo.");
              GetVehiclePos(vehicleid, VehicleInfo[vehicleid][vPX], VehicleInfo[vehicleid][vPY], VehicleInfo[vehicleid][vPZ]);
              SetPlayerCheckpoint(playerid, VehicleInfo[vehicleid][vPX], VehicleInfo[vehicleid][vPY], VehicleInfo[vehicleid][vPZ],5.0);
			  SendClientMessage(playerid, COLOR_YELLOW, "[Wang Cars] Siga o checkpoint para encontrar seu carro.");
			  GPSPos[playerid] = 1;
            }
Code:
if (strcmp("/carmenu", cmdtext, true, 10) == 0)
	{
        new listitems[] = "Estacionar\nLocalizar Carro\nTrancar\nDestrancar\nVender\nResetar Tuning\nSpawnar Carro";
		ShowPlayerDialog(playerid,540,DIALOG_STYLE_LIST,"Menu do Carro:",listitems,"Selecionar","Sair");
		return 1;
	}

Last edited by 'Duallity; 29/04/2012 at 07:59 PM. Reason: erro ortográfico
'Duallity is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda]Concessionária TiggaNigga Português/Portuguese 4 09/04/2012 06:40 PM
[Ajuda]FS Concessionaria Felipe_Freeze Português/Portuguese 2 12/01/2012 06:02 PM
[Ajuda] Concessionária tuner Português/Portuguese 2 08/12/2011 02:25 PM
[ajuda] concessionaria nauan Português/Portuguese 2 06/10/2011 04:40 PM
[AJUDA] Concessionaria addonloko Português/Portuguese 4 14/09/2010 12:07 AM


All times are GMT. The time now is 05:47 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.