Jump to content

[REZOLVAT] Problemem gm


gogu
 Share

Recommended Posts

  • Username:gogu
  • Problema întălnită:cand apas f sau enter scad dintr-o data 20 30 tick
  • Detalii despre problemă:este de la vehicle o sa va las in pastbin, daca o scot apas f sau enter merge perfect numai scad tick-uri daca o bag scad 20 30 tick cand apesi f sau enter
  • Ce ai încercat să faci înainte să postezi?:nu stiu ce sa-i fac
  • Cod sursă (recomandat pastebin.com) :https://pastebin.com/0sQY7wbC
  • Alte detalii:nmk
Link to comment
Share on other sites

	   if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {

		   new car = GetClosestVehicle(playerid);
		   if(car != INVALID_VEHICLE_ID && IsPlayerNearVehicle(playerid,car,5)) {
			   for(new i = 0; i < 10; i++) {
					if(PlayerInfo[playerid][pCarKey][i] != 0) {
						if(CarInfo[PlayerInfo[playerid][pCarKey][i]][Spawned] == car) SetVehicleParamsForPlayer(car, playerid, 0, 0);
					}	
			   }
		   }

 

Link to comment
Share on other sites

1 oră în urmă, Wildo a spus:

	   if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {

		   new car = GetClosestVehicle(playerid);
		   if(car != INVALID_VEHICLE_ID && IsPlayerNearVehicle(playerid,car,5)) {
			   for(new i = 0; i < 10; i++) {
					if(PlayerInfo[playerid][pCarKey][i] != 0) {
						if(CarInfo[PlayerInfo[playerid][pCarKey][i]][Spawned] == car) SetVehicleParamsForPlayer(car, playerid, 0, 0);
					}	
			   }
		   }

 

e la fel ca a mea ?

Link to comment
Share on other sites

1 oră în urmă, Wildo a spus:

	   if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {

		   new car = GetClosestVehicle(playerid);
		   if(car != INVALID_VEHICLE_ID && IsPlayerNearVehicle(playerid,car,5)) {
			   for(new i = 0; i < 10; i++) {
					if(PlayerInfo[playerid][pCarKey][i] != 0) {
						if(CarInfo[PlayerInfo[playerid][pCarKey][i]][Spawned] == car) SetVehicleParamsForPlayer(car, playerid, 0, 0);
					}	
			   }
		   }

 

asa o am si eu la fel si cand apesi de doua 3 ori bau ai 170 tick-uri nu apesi f enter ai 196

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...