SA-MP Forums Archive
going to a position problem! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: going to a position problem! (/showthread.php?tid=553510)



going to a position problem! - iThePunisher - 30.12.2014

im having problems with the position when i try to spawn at house i spawn at blueberry access
or when i try to /gotopos x y z int again it sends me to blueberry access
is there anything i can do about it ??


Re: going to a position problem! - iLuXing - 30.12.2014

blueberry ?

maybe positon 0.0, 0.0, 0.0;

You dont send correct parameters to your function.
check your parameters.


Re : going to a position problem! - StreetRP - 30.12.2014

The script code ?


Re: going to a position problem! - iThePunisher - 30.12.2014

CODE:
pawn Код:
new phome = PlayerInfo[playerid][phkey];
if(GetPlayerVirtualWorld(playerid) == phome)
{
    SetPlayerPosEx(playerid, HouseInfo[phome][HouseInsideX], HouseInfo[phome][HouseInsideY], HouseInfo[phome][HouseInsideZ]);
    SetPlayerFacingAngle(playerid, HouseInfo[phome][HouseInsideA]);
    SetPlayerInterior(playerid, HouseInfo[phome][HouseInterior]);
    SetPlayerVirtualWorld(playerid, HouseInfo[phome][HouseVirtual]);
}



Re: going to a position problem! - Boot - 30.12.2014

Define your "HouseInfo" variable as FLOAT.

I also had this problem some weeks ago.