One warning.
#3

I repair that. It should look like that:

Код:
  			else if(strcmp(x_vehicle, "register", true) == 0)
			{
				if (PlayerToPoint(20.0,playerid,2521.7505,-1546.5853,24.0859) || PlayerToPoint(20.0,playerid,1314.6570,-863.1125,39.3507))
				{
					if(!IsPlayerInAnyVehicle(playerid))
					{
						if(GetPlayerCash(playerid) < 300)
						{
	            			SendClientMessage(playerid, COLOR_GREY, "Ai nevoie de 300$ pentru a inmatricula masina.");
							return 1;
						}
						if (PlayerInfo[playerid][pFaction] == 8)
						{
							ShowPlayerDialog(playerid,572,DIALOG_STYLE_INPUT,"{00ABFF}Numar de inmatriculare","{FFFFFF}Introdu numarul.","Ok","Refuza");
						}
						else
						{
							SendClientMessage(playerid, COLOR_GREY, "Nu esti membru LSVR");
							return 1;
						}
						return 1;
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa fi intr-o masina pentru a folosi aceasta comanda.");
					    return 1;
					}
				}
			}
Not like that-..

Код:
			else if(strcmp(x_vehicle, "register", true) == 0)
			{
				if (PlayerToPoint(20.0,playerid,2521.7505,-1546.5853,24.0859) || PlayerToPoint(20.0,playerid,1314.6570,-863.1125,39.3507))
				{
					if(!IsPlayerInAnyVehicle(playerid))
					{
   						return 1;
					}
					else
					{
						SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa fi intr-o masina pentru a folosi aceasta comanda.");
						return 1;
					}
					if(GetPlayerCash(playerid) < 300)
					{
            			SendClientMessage(playerid, COLOR_GREY, "Ai nevoie de 300$ pentru a inmatricula masina.");
						return 1;
					}
					if (PlayerInfo[playerid][pFaction] == 8)
					{
						ShowPlayerDialog(playerid,572,DIALOG_STYLE_INPUT,"{00ABFF}Numar de inmatriculare","{FFFFFF}Introdu numarul.","Ok","Refuza");
					}
					else
					{
						SendClientMessage(playerid, COLOR_GREY, "Nu esti membru LSVR");
						return 1;
					}
				}
			}
Reply


Messages In This Thread
One warning. - by SpikeSpigel - 16.07.2015, 15:23
Re: One warning. - by admantis - 16.07.2015, 15:26
Re: One warning. - by SpikeSpigel - 16.07.2015, 15:33

Forum Jump:


Users browsing this thread: 2 Guest(s)