SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 28/04/2020, 01:33 AM   #1
pjfPedro
Big Clucker
 
Join Date: Apr 2020
Location: Santa Catarina
Posts: 85
Reputation: 0
Question SetPlayerPos

Boa noite , eu fiz um sistema que salva a posição do player quando ele sai e coloca novamente quando ele reconecta.
isso não esta acontecendo, ele salva a posição mas não o coloca novamente
PHP Code:
Playerplayerid ][ PosX ] =DOF2_GetFloatGetPlayerArquivoplayerid ), "PosX");
        
Playerplayerid ][ PosY ] =DOF2_GetFloatGetPlayerArquivoplayerid ), "PosY");
        
Playerplayerid ][ PosZ ] =DOF2_GetFloatGetPlayerArquivoplayerid ), "PosZ");
        
Playerplayerid ][ Angle ] =DOF2_GetFloatGetPlayerArquivoplayerid ), "Angle");
        
Playerplayerid ][ Interior ] =DOF2_GetIntGetPlayerArquivoplayerid ), "Interior");

        
SetPlayerPos(playerid,Playerplayerid ][ PosX ],Playerplayerid ][ PosY ],Playerplayerid ][ PosZ]);
        
SetPlayerInterior(playerid,Playerplayerid ][ Interior ]);
        
SetPlayerFacingAngle(playerid,Playerplayerid ][ Angle ] );
        
SpawnPlayer(playerid); 
ele comila direitinho mas não seta a posição do player e nem spawna ele
__________________
BRASIL RPG:
https://forum.sa-mp.com/showthread.php?t=674651

Last edited by pjfPedro; 28/04/2020 at 01:34 AM. Reason: mudar o prefixo
pjfPedro is offline   Reply With Quote
Old 28/04/2020, 02:24 AM   #2
RiqueP
Gangsta
 
RiqueP's Avatar
 
Join Date: Jan 2014
Location: 01010011 01010000
Posts: 875
Reputation: 66
Default Re: SetPlayerPos

Deve usar a função SpawnPlayer antes do SetPlayerPos
RiqueP is offline   Reply With Quote
Old 28/04/2020, 04:40 PM   #3
pjfPedro
Big Clucker
 
Join Date: Apr 2020
Location: Santa Catarina
Posts: 85
Reputation: 0
Default Re: SetPlayerPos

Obrigado cara não sabia disso
__________________
BRASIL RPG:
https://forum.sa-mp.com/showthread.php?t=674651
pjfPedro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SetPlayerPos BUG Sn4ke2 Scripting Help 7 04/07/2015 09:28 PM
SetPlayerPos help boomerboom Scripting Help 5 28/09/2013 06:18 PM
Need Help with SetPlayerPos . Rokenzio Scripting Help 15 26/01/2012 08:40 PM
SetPlayerPos... FireCat Help Archive 7 31/07/2010 04:36 PM


All times are GMT. The time now is 08:46 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.