Skins speichern/laden nicht

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
  • Hey. Ich habe ein Problem. Meine Skins speichern/laden nicht.


    Hier meine stocks:


    stock Register(playerid,key[])
    {
    new Account[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Account,sizeof(Account),"/Accounts/%s.txt",name);
    dini_Create(Account);
    dini_Set(Account,"Passwort",key);
    dini_IntSet(Account,"Level",0);
    dini_IntSet(Account,"Adminlevel",0);
    dini_IntSet(Account,"Geld",0);
    dini_IntSet(Account,"Skin",101);
    GetPVarInt(playerid,"Level");
    GetPVarInt(playerid,"Adminlevel");
    GetPVarInt(playerid,"Premiumrang");
    GetPVarInt(playerid,"Skin");
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,WEIß,"SERVER: Du hast dich erfolgreich registriert.");
    SendClientMessage(playerid,WEIß,"SERVER: Herzlich Willkommen auf Deathmatch-Reloaded! | v0.1 {FFFF00}[Beta]");
    SetSpawnInfo(playerid,0,0,-50.1974,-288.3651,5.4297,178.9876,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    SetPlayerScore(playerid,1);
    SetPlayerSkin(playerid,101);
    return 1;
    }


    stock Login(playerid,key[])
    {
    new Account[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Account,sizeof(Account),"/Accounts/%s.txt",name);
    if(!strcmp(key,dini_Get(Account,"Passwort"),false))
    {
    LoadAccount(playerid);
    SetPlayerScore(playerid,dini_Int(Account,"Level"));
    GivePlayerMoney(playerid,dini_Int(Account,"Geld"));
    SetPlayerSkin(playerid,dini_Int(Account,"Skin"));
    SetPVarInt(playerid,"Adminlevel",dini_Int(Account,"Adminlevel"));
    SetPVarInt(playerid,"Banned",dini_Int(Account,"Banned"));
    SetPVarInt(playerid,"Skin",dini_Int(Account,"Skin"));
    SetPVarInt(playerid,"Premiumrang",dini_Int(Account,"Premiumrang"));
    SendClientMessage(playerid,WEIß,"SERVER: Du hast dich erfolgreich eingeloggt.");
    SetSpawnInfo(playerid,0,0,-50.1974,-288.3651,5.4297,178.9876,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,GRÜN,"Das eingegebene Passwort war nicht korrekt.");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Deathmatch-Reloaded: Login","Willkommen zürück!\nDein account wurde in unserer Datenbank gefunden.\nGebe bitte dein Passwort ein, um dich einzuloggen und zu spielen.","Login","Abbrechen");
    return 1;
    }
    }


    stock LoadAccount(playerid)
    {
    new Account[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Account,sizeof(Account),"/Accounts/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Account,"Level"));
    GivePlayerMoney(playerid,dini_Int(Account,"Geld"));
    SetPVarInt(playerid,"Adminlevel",dini_Int(Account,"Adminlevel"));
    SetPVarInt(playerid,"Banned",dini_Int(Account,"Banned"));
    SetPVarInt(playerid,"Premiumrang",dini_Int(Account,"Premiumrang"));
    SetPVarInt(playerid,"Skin",dini_Int(Account,"Skin"));
    SetSpawnInfo(playerid,0,0,-50.1974,-288.3651,5.4297,178.9876,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    SetPlayerFacingAngle(playerid,180.9144);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    if(GetPVarInt(playerid,"Banned")==1)
    {
    new pID,string[128];
    format(string,sizeof(string),"Der Spieler %s versucht auf dem Server zu kommen, schafft es aber nicht,",SpielerName(playerid));
    SendClientMessageToAll(ROT,string);
    SendClientMessageToAll(ROT,"da er sich nicht gegen die Bann-Mauer durchkämpfen kann.");
    Kick(pID);
    }
    return 1;
    }


    stock SaveAccount(playerid)
    {
    new Account[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Account,sizeof(Account),"/Accounts/%s.txt",name);
    dini_IntSet(Account,"Level",GetPlayerScore(playerid));
    dini_IntSet(Account,"Geld",GetPlayerMoney(playerid));
    dini_IntSet(Account,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
    dini_IntSet(Account,"Banned",GetPVarInt(playerid,"Banned"));
    dini_IntSet(Account,"Premiumrang",GetPVarInt(playerid,"Premiumrang"));
    dini_IntSet(Account,"Skin",GetPlayerSkin(playerid));
    return 1;
    }


    Was ist daran falsch?

    Liberty Reallife ♥


    SA-MP Server IP:

    Liberty-Reallife.de:7777 oder 176.57.142.127:777 | Version: 0.3z

    ____________________________________________________


    Forum:

    ____________________________________________________


    TeamSpeak³ Server IP:
    Liberty Reallife.de:9987 oder 176.57.142.172:9987

    ____________________________________________________


    TeamSpeak³ Server Passwort:

    ts-lr