Complicated SetPlayerPos Errors. -
pawn Код:
/*Line66*/SetPlayerPos(playerid, dini_Get(playerfile, "PosX"), dini_Get(playerfile, "PosY"), dini_Get(playerfile, "PosZ"));
/*Line67*/SetPlayerFacingAngle(playerid, dini_Get(playerfile, "RotZ"));
// When the Dini_Get's Get's His Values:
public OnPlayerDisconnect(playerid, reason)
{
if(logged[playerid] == 1)
{
new playerfile[100], pname[MAX_PLAYER_NAME];
new Float:Xp,Float:Yp,Float:Zp,Float:Ap;
new X[128],Y[128],Z[128],A[128];
GetPlayerPos(playerid, Xp,Yp,Zp);
GetPlayerFacingAngle(playerid, Ap);
GetPlayerName(playerid, pname, sizeof(pname));
format(playerfile, sizeof(playerfile), "Users/%s.ini",pname);
format(X, sizeof(X), "%s", Xp);
format(Y, sizeof(Y), "%s", Yp);
format(Z, sizeof(Z), "%s", Zp);
format(A, sizeof(A), "%s", Ap);
dini_Set(playerfile, "PosX", X);
dini_Set(playerfile, "PosY", Y);
dini_Set(playerfile, "PosZ", Z);
dini_Set(playerfile, "RotZ", A);
}
level[playerid] = 0;
logged[playerid] = 0;
return 1;
}
Re: Complicated SetPlayerPos Errors. -
is used to return only strings from a value. Use
Re: Complicated SetPlayerPos Errors. -
Re: Complicated SetPlayerPos Errors. -
... Since Im Using Everytime.