Hilfe beim Spawn!

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

  • In dem was du verlinkt hast, stehts doch wunderbar drinne? O_o
    Daten dafür erstellt?


    Engelsflügel am Astonkühler, als Schutz vor dem Teufel!

  • Ich sollte folgeneds einfügen:
    pInfo:
    Float: SpawnX,
    Float: SpawnY,
    Float: SpawnZ,
    Float: SpawnR,
    SInterior,
    SVirtualWorld
    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 ); }

    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);
    OnPlayerUpdateEx
    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);
    OnPlayerSpawn
    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]);


    Da sind 0.0 hinter die ich durch:
    PlayerInfo[playerid][SpwanX] ..
    Also:
    format(var, 32, "SpawnX=%.1f\n",PlayerInfo[playerid][SpwanX] );fwrite(hFile, var);


    Ersetzt habe, im .Ini sind alle Sachen drine, aber werde nie geupdatet bzw speichert er nix!
    Hilfe dringend!