Jump to content
  • 0

pomoc pozicia


Guest [BJ]boban88

Dotaz

Guest [BJ]boban88

takze strucne potrebujem ukladanie pozicie cez dini pretoze vsetky su tu cez dudb a ja som to robil uz na par sposobov ale nefunguje to erory nehadze ale nejde to a prosim len 100% funkcne a spamery zbytocne sem budete pisat bo po vyrieseni sa tento help deletuje :v: :v:

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

Do Save/OnPlayerDisconnect

 

if(IsPlayerConnected(playerid))
  {

	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid,X,Y,Z);

	new Float:A;
	GetPlayerFacingAngle(playerid, A);

	dini_IntSet(file, "X", floatround(X));

	dini_IntSet(file, "Y", floatround(Y));

	dini_IntSet(file, "Z", floatround(Z));

	dini_IntSet(file, "A", floatround(A));


  }
  return 1;

 

Do OnPlayerSpawn

if (Informace[playerid][isLogged] == true) // Promenna jestli je lognutej
{
  	 SetPlayerPos(playerid, dini_Float(file, "X"), dini_Float(file, "Y"), dini_Float(file, "Z"));
   	SetPlayerFacingAngle(playerid, dini_Float(file, "A"));

	SetCameraBehindPlayer(playerid);
}

 

Me to takhle funguje bez problemu

Link to comment
Share on other sites

  • 0
Guest [BJ]boban88

a co mi povies na undefined symbol file riadky su tie v tom spawne

btw nerobil som ti nahodou ukladanie cez dudb ? :d :D

ale nato kasli vyries eror ked tebe to ide :d

Link to comment
Share on other sites

  • 0
Guest [BJ]boban88

nj erko new file[128]; nestaci :d

a ja to davno mam vyriesene ten eror ale dobuducna tebe skus nejak takto to riesit inak ti ta urcita vec nebude fungovat ked das iba to tvoje eror sice zmizne ale nebude to slapat takze takto :

new name[MAX_PLAYER_NAME];

new file[256];

GetPlayerName(playerid, name, sizeof(name));

format(file, sizeof(file), SERVER_USER_FILE, name);

 

a dik toto jedine som asi neskusil inac asi vsetko ale uz to ide takze Daw3 tak ako sme sa dohodli mozes DELETE :v: :v: :v:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...