Quote:
Originally Posted by Escobabe
I'm using it like this now
PHP код:
new Float:x,Float:y,Float:z;
if(newinteriorid == 3)
{
GetPlayerPos(playerid,x,y,z);
}
if(newinteriorid == 0)
{
SetPlayerPos(playerid,x,y,z);
}
But, everytime i spawn, i spawn at the 0.0 0.0 0.0 co-ordinates near that farm?
|
Because x, y, z are being created again when interior changes. Make global player variable for it.