Question

archiboy6
Гуру форума
Спойлер

stock BuyCloseCar(playerid)
{
	new Float:x, Float:y, Float:z, Float:fa;
	switch(InShop[playerid])
	{
 		case 1: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
  		case 2: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
		case 3: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
        case 4: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
	}
	if(PI[playerid][SalonCarID] != INVALID_VEHICLE_ID) DestroyVehicle(PI[playerid][SalonCarID]);
	PI[playerid][SalonCarID] = INVALID_VEHICLE_ID;
	InShop[playerid] = 0;
	TogglePlayerControllable(playerid,true);
	for(new i; i < 19; i++) PlayerTextDrawHide(playerid,AvtTD[playerid][i]);
	SetPlayerPos(playerid,x,y,z);
	SetPlayerFacingAngle(playerid,fa);
	SetPlayerInterior(playerid,0);
	SetPlayerVirtualWorld(playerid,0);
	SetCameraBehindPlayer(playerid);
	pPressed[playerid] = 0;
	SetPlayerPos(playerid,x,y,z);
	return 1;
}

 

Когда отмеяняю покупку, я появляюсь на месте где спавнятся машины, но мне надо нажать ESc чтобы я мог бегать, но камеру не отпускает все равно

Edited by archiboy6

Share this post


Link to post

6 answers to this question

  • 0
Cawfee
Великий Гуру

@archiboy6, а если так:

Спойлер

stock BuyCloseCar(playerid)
{
	new Float:x, Float:y, Float:z, Float:fa;
	switch(InShop[playerid])
	{
 		case 1: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
  		case 2: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
		case 3: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
        case 4: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
	}
	if(PI[playerid][SalonCarID] != INVALID_VEHICLE_ID) DestroyVehicle(PI[playerid][SalonCarID]);
	PI[playerid][SalonCarID] = INVALID_VEHICLE_ID;
	InShop[playerid] = 0;
	TogglePlayerControllable(playerid,true);
	for(new i; i < 19; i++) PlayerTextDrawHide(playerid,AvtTD[playerid][i]);
	SetPlayerPos(playerid,x,y,z);
	SetPlayerFacingAngle(playerid,fa);
	SetPlayerInterior(playerid,0);
	SetPlayerVirtualWorld(playerid,0);
	SetCameraBehindPlayer(playerid);
	pPressed[playerid] = 0;
	return 1;
}

 

 

Share this post


Link to post
  • 0
Cawfee
Великий Гуру

@archiboy6,  тогда еще вот так попробуйте:

Спойлер

stock BuyCloseCar(playerid)
{
	new Float:x, Float:y, Float:z, Float:fa;
	switch(InShop[playerid])
	{
 		case 1: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
  		case 2: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
		case 3: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
        case 4: x=2641.8315, y=-1909.0548, z=2328.1499, fa=260.0000;
	}
	if(PI[playerid][SalonCarID] != INVALID_VEHICLE_ID) DestroyVehicle(PI[playerid][SalonCarID]);
	PI[playerid][SalonCarID] = INVALID_VEHICLE_ID;
	InShop[playerid] = 0;
	TogglePlayerControllable(playerid,true);
	CancelSelectTextDraw(playerid);
	for(new i; i < 19; i++) PlayerTextDrawHide(playerid,AvtTD[playerid][i]);
	SetPlayerPos(playerid,x,y,z);
	SetPlayerFacingAngle(playerid,fa);
	SetPlayerInterior(playerid,0);
	SetPlayerVirtualWorld(playerid,0);
	SetCameraBehindPlayer(playerid);
	pPressed[playerid] = 0;
	return 1;
}

 

 

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • ANIME_TOP12YLTRA
      By ANIME_TOP12YLTRA
      Помогите пожалуйста у меня еррор при компиляции
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : error 001: expected token: ";", but found "["
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : error 029: invalid expression, assumed zero
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : warning 221: label name "E_HANDLING_PARAMS" shadows tag name
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : error 001: expected token: ";", but found "]"
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : fatal error 107: too many error messages on one line
      Compilation aborted.
      Pawn compiler 3.2.3664              Copyright (c) 1997-2016, ITB CompuPhase

      4 Errors.
       
      код - g_VehHandlingInfo[veh][E_HANDLING_PARAMS:j] = 0.0;