Spawne nicht da wo ich mich ausgelogt habe

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • halo ich spawne nicht da wo ich mich ausgelogt habe woran liegt das ?
    hier mal der code


    unter pinfo habe ich
    Float: SpawnX,Float: SpawnY,
    Float: SpawnZ,
    Float: SpawnR,
    SInterior,
    SVirtualWorld,


    unter OnPlayerLogin


    if( strcmp( key , "SpawnX" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][SpawnX] = floatstr( val ); }
    if( strcmp( key , "SpawnY" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][SpawnY] = floatstr( val ); }
    if( strcmp( key , "SpawnZ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][SpawnZ] = floatstr( val ); }
    if( strcmp( key , "SpawnR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][SpawnR] = floatstr( val ); }
    if( strcmp( key , "SInterior" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][SInterior] = strval( val ); }
    if( strcmp( key , "SVirtualWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][SVirtualWorld] = strval( val ); }


    unter OnPlayerRegister


    format(var, 32, "SpawnX=%.1f\n",0.0);fwrite(hFile, var);
    format(var, 32, "SpawnY=%.1f\n",0.0);fwrite(hFile, var);
    format(var, 32, "SpawnZ=%.1f\n",0.0);fwrite(hFile, var);
    format(var, 32, "SpawnR=%.1f\n",0.0);fwrite(hFile, var);
    format(var, 32, "SInterior=%d\n",0);fwrite(hFile, var);
    format(var, 32, "SVirtualWorld=%d\n",0);fwrite(hFile, var);



    unter Function PlayerUpdate(playerid) habe ich


    format(var, 32, "SpawnX=%.1f\n",0.0);fwrite(hFile, var);
    format(var, 32, "SpawnY=%.1f\n",0.0);fwrite(hFile, var);
    format(var, 32, "SpawnZ=%.1f\n",0.0);fwrite(hFile, var);
    format(var, 32, "SpawnR=%.1f\n",0.0);fwrite(hFile, var);
    format(var, 32, "SInterior=%d\n",0);fwrite(hFile, var);
    format(var, 32, "SVirtualWorld=%d\n",0);fwrite(hFile, var);



    und unter onplayer spawn
    SetPlayerPos(playerid, PlayerInfo[playerid][SpawnX], PlayerInfo[playerid][SpawnY], PlayerInfo[playerid][SpawnZ]);
    SetPlayerFacingAngle(playerid, PlayerInfo[playerid][SpawnR]);
    SetPlayerInterior(playerid, PlayerInfo[playerid][SInterior]);
    SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][SVirtualWorld]);


    iCH Bedanke ich mich schonmal