SA-MP Forums Archive
[Ajuda] Key_Submission - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Key_Submission (/showthread.php?tid=259791)



[Ajuda] Key_Submission - bernardo - 05.06.2011

Tenho um problema com a key_submission, supostamente deveria ligar as luzes quando carrego, mas eu carrego e nгo faz nada.

Ajuda ai. pff

Код:
else if(PRESSED(KEY_SUBMISSION))
	{
	    if (IsPlayerInAnyVehicle(playerid))
		{
			new vid = GetPlayerVehicleID(playerid);
			GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
			if(lights != 1)
			{
				SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective);
				SendClientMessage(playerid, COLOR_WHITE, "Ligas-te as Luzes!");
	        }
            else
            {
			    SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective);
			    SendClientMessage(playerid, COLOR_WHITE, "Desligas-te as Luzes!");
	        }
	        return 1;
		}
	}



Re: [Ajuda] Key_Submission - bernardo - 06.06.2011

Alguйm?