/v plate not working
#5

I've tried what you said, but I get unreachable code

To be more clear, this code works:
Код:
	        if(strcmp(x_nr, "plate", true) == 0)
	        {
				if(PlayerInfo[playerid][pPcarkey] == 999)
				{
					SendClientMessage(playerid, COLOR_GREY,"   You don't have a vehicle to respray.");
					return 1;
				}
				if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || PlayerInfo[playerid][pPcarkey2])
				{
					new Float:x,Float:y,Float:z,Float:ang;
					GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
					GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
					if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED, "Nu esti intr-un vehicul!");
					new str[1028];
					format(str, 1024, "{00CC66}Scrie in casuta numarul de inmatriculare dorit!\n\n");
					format(str, 1024, "{AA3333}ATENTIE!\n");
					format(str, 1024, "{00CC66}Fara numere gen {33AA33}Maria, Cezar, Vlad, etc\n\n");
					ShowPlayerDialog(playerid,DIALOG_PLATE,DIALOG_STYLE_INPUT,"{EE7777}Plate Car", str,"Yes","Cancel");
					return 1;
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY, "  Nu esti in masina ta personala!");
					return 1;
				}
And after that I get the code unreachable. This is the code which seems to be unreachable:

Код:
                for(new h = carsonserver; h < sizeof(CarInfo); h++)
                {
                    format(TextCar, sizeof(TextCar), "• %s •", CarInfo[h][cLicense]);
                    TextUpCar[h] = Create3DTextLabel(TextCar, 0xAA3333AA , 0.0, 0.0, 0.0, 25, 0, 1);
                    Attach3DTextLabelToVehicle(TextUpCar[h], h, 0.0, 0.0, 0.1);
                }
            return 1;
            }
I want to show the number plate of vehicle, but it's not showing.
Reply


Messages In This Thread
/v plate not working - by stelistcristi - 04.05.2014, 15:48
Re: /v plate not working - by horsemeat - 04.05.2014, 15:50
Re: /v plate not working - by stelistcristi - 04.05.2014, 15:50
Re: /v plate not working - by horsemeat - 04.05.2014, 15:59
Re: /v plate not working - by stelistcristi - 04.05.2014, 16:19
Re: /v plate not working - by horsemeat - 04.05.2014, 18:10

Forum Jump:


Users browsing this thread: 2 Guest(s)