Guten Tag,
Wenn ich Spawne werde ich immer an position 0.0 spawnt & ich finde den fehler einfach nicht.
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))return 1;
TogglePlayerSpectating(playerid,false);
TextDrawShowForPlayer(playerid, TextInfo);
SetPlayerColor(playerid, 0xFFFFFF00);
if(pInfo[playerid][pTutorial] == 0) {
//Tutorial
SetPlayerPos(playerid, 1155.1396, -1768.6425, 16.5938);
SetPlayerFacingAngle(playerid, 1.0457);
pInfo[playerid][pSkin] = 101;
SetPlayerSkin(playerid, pInfo[playerid][pSkin]);
SetCameraBehindPlayer(playerid);
pInfo[playerid][pTutorial] = 1;
return 1;
}
else {
GivePlayerMoney(playerid, pInfo[playerid][pMoney]);
SetPlayerScore(playerid, pInfo[playerid][pScore]);
SetPlayerPos(playerid, pInfo[playerid][pSpawn][0], pInfo[playerid][pSpawn][1], pInfo[playerid][pSpawn][2]);
SetPlayerFacingAngle(playerid, pInfo[playerid][pSpawn][3]);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid, pInfo[playerid][pSkin]);
SetPlayerVirtualWorld(playerid, pInfo[playerid][pVW]);
SetPlayerInterior(playerid, pInfo[playerid][pInt]);
return 1;
}
}
& JA MEIN pTutorial ist 0 in der datenbank.