SA-MP Forums Archive
[Ajuda] O que tem de errado nisso? - 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] O que tem de errado nisso? (/showthread.php?tid=613792)



O que tem de errado nisso? - Derritee1001 - 31.07.2016

Jб olhei o sistema todo, nгo pude notar nada de errado, mбs in-game, nгo acontece nada, alguйm poderia me ajudar por favor? REP+!

Код:
if(KEY_HANDBRAKE && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GetFactionType(playerid) != FACTION_POLICE)
	{
		if(PlayerHoldingWeapon(playerid, 43))
		{
			new Float:x,Float:y,Float:z,vehicle;
			foreach(Player, i)
			{
				if(IsPlayerInAnyVehicle(i))
				{
					vehicle = GetPlayerVehicleID(i);
					
						if(IsPlayerStreamedIn(i, playerid))
						{
							GetPlayerPos(i,x,y,z);
							if(IsPlayerAimingAt(playerid,x,y,z,10))
							{
								new string[68];
								format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~b~Placa: ~w~%s~n~~b~Velocidade: ~w~%d MPH", CarData[vehicle][carPlaca], GetVehicleSpeed(vehicle));
								GameTextForPlayer(playerid, string, 3500, 3);
								format(string, sizeof(string), "Placa: %s. Velocidade: %d MPH", CarData[vehicle][carPlaca], GetVehicleSpeed(vehicle) );
								SendClientMessage(playerid, -1, string);
								return 1;
							}
						}
				}
			}
		}
	}



Re: O que tem de errado nisso? - Derritee1001 - 31.07.2016

Resolvido!