11.08.2017, 23:52
Jб expliquei por que eu digo que esse tipo de ajuda и idiota kkk, alguйm poderia me dizer um erro logico, a coordenada и pega, porem nгo и setada:
Ignorem o printf.
PHP код:
stock PegarCarro(playerid)
{
new vehicleid;
if(IsPlayerInAnyVehicle(playerid)) vehicleid = GetPlayerVehicleID(playerid);
{
new Float:vX, Float:vY, Float:vZ, Float:vA;
GetVehiclePos(vehicleid, vX, vY, vZ);
GetVehicleZAngle(vehicleid, vA);
printf("Coord1:%i Coord2:%i Coord3: %i Angulo:%i", vX, vY, vZ, vA);
}
return 1;
}
stock ColocarCarro(playerid)
{
new vehicleid;
if(IsPlayerInAnyVehicle(playerid)) vehicleid = GetPlayerVehicleID(playerid);
{
PegarCarro(playerid);
SetVehiclePos(vehicleid, vX, vY, vZ);
SetVehicleZAngle(vehicleid, vA);
PutPlayerInVehicle(playerid, vehicleid, 0);
printf("Setou essas coords: Coord1:%i Coord2:%i Coord3: %i Angulo:%i", vX, vY, vZ, vA);
TogglePlayerControllable(playerid, 1);
}
return 1;
}