Hey,
Normal sollte beim Ausloggen die Position gespeichert werden
Nur das tut es nicht
stock SpielerSpeichern(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"logged") == 1)
{
new query[200];
format(query, sizeof(query), "UPDATE `accounts` SET `Level` = '%d',`Admin` = '%d',`Geld` = '%d',`Frak` = '%d',`Perso` = '%d',`Clic` = '%d',`Flic` = '%d',`Mlic` = '%d',`Wlic` = '%d' WHERE `Name` = '%s'",
PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pGeld],PlayerInfo[playerid][pFrak],PlayerInfo[playerid][pPerso],
PlayerInfo[playerid][pClic],PlayerInfo[playerid][pFlic],PlayerInfo[playerid][pMlic],PlayerInfo[playerid][pWlic],SpielerName(playerid));
mysql_query(query);
format(query, sizeof(query), "UPDATE `accounts` SET `PosX` = '%f',`PosY` = '%f',`PosZ` = '%d',`PosA` = '%f' WHERE `Name` = '%s'",
PlayerInfo[playerid][pX],PlayerInfo[playerid][pY],PlayerInfo[playerid][pZ],PlayerInfo[playerid][pA],SpielerName(playerid));
mysql_query(query);
}
}
return 1;
}
SpielerSpeichern(playerid);
new Float:X,Float:Y,Float:Z,Float:A;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,A);
PlayerInfo[playerid][pX] = X;
PlayerInfo[playerid][pY] = Y;
PlayerInfo[playerid][pZ] = Z;
PlayerInfo[playerid][pA] = A;
Mit Freundlichen Grüßen