/gethere bug
#8

Just to tell you where you went wrong.

pawn Код:
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(id));
    SetPlayerInterior(playerid, GetPlayerInterior(id));
    GetPlayerPos(id, Pos[0], Pos[1], Pos[2]);
    GetPlayerFacingAngle(id, Pos[3]);
    SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    SetPlayerFacingAngle(playerid, Pos[3]);
You have mixed up 'playerid' and 'id', the correct code is:
pawn Код:
SetPlayerVirtualWorld(id, GetPlayerVirtualWorld(playerid)); //Set target to your vw, not your vw to the target's
    SetPlayerInterior(id, GetPlayerInterior(playerid)); //Set target to your interior, not your interior to the target's
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); //Get your position
    GetPlayerFacingAngle(playerid, Pos[3]); //Get your angle
    SetPlayerPos(id, Pos[0], Pos[1], Pos[2]); //Set the target to this position
    SetPlayerFacingAngle(id, Pos[3]); //Set the target to this angle
id (target) = Player you are trying to teleport.
playerid (you) = Your player
Reply


Messages In This Thread
/gethere bug - by Michael_Cuellar - 21.12.2012, 01:27
Re: /gethere bug - by EAsT-OAK_510 - 21.12.2012, 01:31
Re: /gethere bug - by Joshman543 - 21.12.2012, 01:32
Re: /gethere bug - by Michael_Cuellar - 21.12.2012, 01:35
Re: /gethere bug - by EAsT-OAK_510 - 21.12.2012, 01:38
Re: /gethere bug - by Michael_Cuellar - 21.12.2012, 01:40
Re: /gethere bug - by EAsT-OAK_510 - 21.12.2012, 01:40
Re: /gethere bug - by Threshold - 21.12.2012, 05:11

Forum Jump:


Users browsing this thread: 1 Guest(s)