Beiträge von NicoAiko

    /*hallo liebe brotfische,


    ich habe vor ein paar tagen angefangen mein registersystem in mysql zu machen aber die daten des users werden in der datenbank nicht gespeichert oO.


    hier die zeilen


    PS ich machs in quelltext da es evtl. sein kann das alles in einer zeile ist...*/


    public AccPlayerUpdater() //dann wird es regelmäßig gespeichert und es speichert automatisch wenn spieler disconnectet...
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    UpdateAccount(i);
    }
    }


    stock mysqlget(table[],bedien[],abfrag[],data[])
    {
    new query[128];
    format(query,sizeof(query),"SELECT %s FROM %s WHERE %s",abfrag,table,bedien);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field(abfrag, data);
    mysql_free_result();
    return true;
    }
    else
    {
    mysql_free_result();
    return false;
    }
    }
    stock LoadUserData(playerid,playername[])
    {
    new query[256],data[255],move[256];
    format(move,sizeof move,"Nickname='%s'",playername);
    format(query,sizeof query,"SELECT * FROM Accounts WHERE %s",move);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field("Adminlevel",data);
    Acc[playerid][Adminlv] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Alter",data);
    Acc[playerid][Alter] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Herkunft",data);
    Acc[playerid][Herkunft] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Geschlecht",data);
    Acc[playerid][Geschlecht] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Chef",data);
    Acc[playerid][Chef] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Co_Chef",data);
    Acc[playerid][Co_Chef] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Member",data);
    Acc[playerid][Member] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Rank",data);
    Acc[playerid][Rank] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Tutorial",data);
    Acc[playerid][Tut] = strval(data);
    mysql_free_result();
    mysql_fetch_field("WereTimeout",data);
    Acc[playerid][WereTimeout] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Bank",data);
    Acc[playerid][Bank] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Adminwarns",data);
    Acc[playerid][Adminwarns] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Skin",data);
    Acc[playerid][Skin] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Kontonr",data);
    Acc[playerid][Kontonr] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Kontoauszug",data);
    Acc[playerid][LastBankCheck] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Wanteds",data);
    Acc[playerid][Wanteds] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Autoschein",data);
    Acc[playerid][CarLiz] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Motorradschein",data);
    Acc[playerid][MoLiz] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Bootschein",data);
    Acc[playerid][BootLiz] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Flugschein",data);
    Acc[playerid][FlyLiz] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Lkwschein",data);
    Acc[playerid][LkwLiz] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Angelschein",data);
    Acc[playerid][AngelLiz] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Waffenschein",data);
    Acc[playerid][WaffenLiz] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Busschein",data);
    Acc[playerid][BusLiz] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Gebannt",data);
    Acc[playerid][Gebannt] = strval(data);
    mysql_free_result();
    mysql_fetch_field("Userid",data);
    Acc[playerid][Userid] = strval(data);
    mysql_free_result();
    mysql_fetch_field("TimeoutPosX",data);
    TimeoutPosX[playerid] = floatstr(data);
    mysql_free_result();
    mysql_fetch_field("TimeoutPosY",data);
    TimeoutPosY[playerid] = floatstr(data);
    mysql_free_result();
    mysql_fetch_field("TimeoutPosZ",data);
    TimeoutPosZ[playerid] = floatstr(data);
    mysql_free_result();
    }
    else
    {
    SendClientMessage(playerid,rot,"Es ist ein Problem mit ihrem Account aufgetaucht. Bitte reloggen sie!");
    Kick(playerid);
    }
    }
    stock mysqlupdate(table[],bedien[],spalte[],data[])
    {
    new query[128];
    format(query,sizeof query,"UPDATE %s SET %s='%s' WHERE %s",table,spalte,data,bedien);
    mysql_query(query);
    mysql_free_result();
    }
    stock UpdateAccount(playerid)
    {
    new bedien[128],updatestring[128];
    GetPlayerNameEx(playerid,name);
    format(bedien,sizeof bedien,"Nickname='%s'",name);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Adminlv]);
    mysqlupdate("Accounts",bedien,"Adminlevel",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Alter]);
    mysqlupdate("Accounts",bedien,"Alter",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Herkunft]);
    mysqlupdate("Accounts",bedien,"Herkunft",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Geschlecht]);
    mysqlupdate("Accounts",bedien,"Geschlecht",updatestring);
    format(updatestring,sizeof updatestring,"%i",GetPlayerMoney(playerid));
    mysqlupdate("Accounts",bedien,"Geld",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Chef]);
    mysqlupdate("Accounts",bedien,"Chef",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Co_Chef]);
    mysqlupdate("Accounts",bedien,"Co_Chef",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Member]);
    mysqlupdate("Accounts",bedien,"Member",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Rank]);
    mysqlupdate("Accounts",bedien,"Rank",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Tut]);
    mysqlupdate("Accounts",bedien,"Tutorial",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][WereTimeout]);
    mysqlupdate("Accounts",bedien,"WereTimeout",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Bank]);
    mysqlupdate("Accounts",bedien,"Bank",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Adminwarns]);
    mysqlupdate("Accounts",bedien,"Adminwarns",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Skin]);
    mysqlupdate("Accounts",bedien,"Skin",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Kontonr]);
    mysqlupdate("Accounts",bedien,"Kontonr",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][LastBankCheck]);
    mysqlupdate("Accounts",bedien,"Kontoauszug",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Wanteds]);
    mysqlupdate("Accounts",bedien,"Wanteds",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][CarLiz]);
    mysqlupdate("Accounts",bedien,"Autoschein",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][MoLiz]);
    mysqlupdate("Accounts",bedien,"Motorradschein",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][BootLiz]);
    mysqlupdate("Accounts",bedien,"Bootschein",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][FlyLiz]);
    mysqlupdate("Accounts",bedien,"Flugschein",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][LkwLiz]);
    mysqlupdate("Accounts",bedien,"Lkwschein",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][AngelLiz]);
    mysqlupdate("Accounts",bedien,"Angelschein",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][WaffenLiz]);
    mysqlupdate("Accounts",bedien,"Waffenschein",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][BusLiz]);
    mysqlupdate("Accounts",bedien,"Busschein",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Gebannt]);
    mysqlupdate("Accounts",bedien,"Gebannt",updatestring);
    format(updatestring,sizeof updatestring,"%i",Acc[playerid][Userid]);
    mysqlupdate("Accounts",bedien,"Userid",updatestring);
    format(updatestring,sizeof updatestring,"%f",TimeoutPosX[playerid]);
    mysqlupdate("Accounts",bedien,"TimeoutPosX",updatestring);
    format(updatestring,sizeof updatestring,"%f",TimeoutPosY[playerid]);
    mysqlupdate("Accounts",bedien,"TimeoutPosY",updatestring);
    format(updatestring,sizeof updatestring,"%f",TimeoutPosZ[playerid]);
    mysqlupdate("Accounts",bedien,"TimeoutPosZ",updatestring);
    }

    /*Danke schonmal für eure Hilfe


    MfG [aKoE]nanyo */


    //edit 1
    Versuch 1 pwn zeilen einzufügen

    Hab folgene Errors:



    (4090) : error 017: undefined symbol "LoadPlayerCar"
    (7154) : warning 225: unreachable code
    (7155) : warning 209: function "mysqlget" should return a value
    (7375) : error 017: undefined symbol "LoadPlayerCar"
    (7446) : warning 217: loose indentation
    (7446) : error 029: invalid expression, assumed zero
    (7446) : error 017: undefined symbol "LoadPlayerCar"
    (7528) : error 030: compound statement not closed at the end of file (started at line 7380)


    Zeilen


    if(mysqlget("PlayerCar",string,"PlayerCars",data2)) { LoadPlayerCar(playerid); }

    stock mysqlget(table[],bedien[],abfrag[],data[]){ new query[128]; format(query,sizeof(query),"SELECT %s FROM %s WHERE %s",abfrag,table,bedien); mysql_query(query); mysql_store_result(); if(mysql_num_rows()) { mysql_fetch_field(abfrag, data); mysql_free_result(); return true; } else { return false; } mysql_free_result(); //Zeile 7154} // Zeile 7155

    stock LoadPlayerCar(playerid) //Zeile 7446


    Vielen Dank im Voraus


    //edit 1+2
    Überschrift geändert

    also du musst nen Timer erstellen! ^^
    forward AbfrageInRange(playerid);
    public OnPlayerSpawn(playerid)
    {
    //....
    SetTimerEx("AbfrageInRange",2000,0,"i",playerid);
    return 1;
    }
    public AbfrageInRange(playerid)
    {
    if(IsPlayerInRangeOfPoint(playerid,3,1738.93383789,-1942.99157715,13.21482849))
    {
    GameTextForPlayer(playerid,"~g~/atm ~y~um das Menue aufzurufen",800,3);
    }
    return 1;
    }

    Sehr geehrte Brotfische,


    ich stelle euch hiermit ein Tutorial für die Anfänger- & Fortgeschrittene Benutzung von Switch & Case.


    die einfache Benutzung.

    new Var = 10; // hier wird der Variable ein Wert gegeben
    if(Var > 10) // Wenn Var größer als 10 ist.
    if(Var < 10) // Wenn Var kleiner als 10 ist.
    if(Var == 10) // Wenn Var gleich 10 ist.

    nun die einfache Switch & Case Benutzung

    switch(Var)
    { //Immer eine Klammer sonst gibt es Errors!!
    case 0: // Wenn Var gleich 0 ist
    case 1..4: // Wenn Var größer gleich 1 & kleiner gleich 4 ist sprich (if(Var >= 1 && Var <= 4))
    //ab hier etwas schwerer!
    case 5..7,8..10: // Wenn Var größer gleich 5 & kleiner gleich 7 ist ODER größer gleich 8 & kleiner gleich 10 sprich ( if(Var >= 5 && Var <= 7 || Var >= 8 && Var <= 10) )
    case 0,1,2..10: // Wenn Var gleich 0,1 oder größer gleich 2 & kleiner gleich 10 ist!
    default: // wenn Var nicht zwischen den oben benannten Werten liegt! d.h. Weder: 0,1-4,5-7,8-10,0,1,2-10!!!
    }

    Ein Beispiel mit print!

    switch(Var)
    {
    case 0: print("Var == 0!");
    case 1..4: print("Var liegt zwischen 1 & 4");
    case 5..7,8..10: print("Var liegt zwischen 5 & 7 oder 8 & 10");
    case 0,1,2..10: print("Var ist entweder 0,1 oder liegt zwischen 2 & 10");
    default: print("Var liegt nicht im Bereich der oben benannten Cases!");
    }

    Ihr könnt Switch & Case gut bei Abfragen einsetzen wenn ihr keine lange if-Abfrage machen wollt z.B. (Achtung: der Inhalt muss dann gleich sein)

    //statt
    if(Var == 1 || Var == 2 || Var == 5 || Var == 7) //Inhalt
    //geht es einfacher so
    switch(Var)
    {
    case 1,2,5,7: //Inhalt
    }

    Nun wenn ihr mehrere Variablen nachfragen wollt & sie das selbe bewirken sollen!
    Z.B. Enum-Abfrage

    // ab hier aufpassen das ist vllt etwas kompliziert
    new l = Acc[...][Var1]; //z.B. Leader
    new m = Acc[...][Var2]; //z.B. Member
    new c = Acc[...][Var3]; //z.B. Co-Leader
    switch(m || l || c) // wenn m, c oder l
    {
    case 0: ... // == 0 ist
    usw...
    }

    Desweiteren geht auch natürlich in der Case-Abfrage eine normale if-Abfrage ^^
    Wichtig:


    Innerhalb einer switch-Abfrage und Außerhalb einer Case-Abfrage kann man keine anderen Codes einfügen!!!


    Ein Beispiel:

    //so ist es richtig
    switch(...)
    {
    case 0:
    {
    //code
    }
    }
    //--------------
    //so ist es falsch!
    switch(...)
    {
    //code
    case 0:
    {
    //code
    }
    //code
    }


    Es wird um Kritik gebeten.


    MfG [aKoE]nanyo :thumbup:


    /Edit 1/
    switch(m || l || c) eingefügt
    /Edit 2/
    Etwas für Switch geaddet
    /Edit 3/
    Überschrift & Text klein verändert

    Hallo, ich komm gleich zur Sache
    Wenn man Den Motor Startet, läuft der Tank normal,
    wenn man aber in ein Fahrzeug einsteigt wo der Tank schon anwar läuft es schneller hier die sachen.



    TankTimer[playerid] = SetTimerEx("Tank",7500,1,"i",playerid); // Beim Tanken
    TankTimer[playerid] = SetTimerEx("Tank",7500,1,"i",playerid); /bei /motoran
    KillTimer(TankTimer[playerid]); // bei /motoraus
    KillTimer(TankTimer[playerid]); // bei /fill
    KillTimer(TankTimer[playerid]); // bei OnPlayerExitVehicle
    TankTimer[playerid] = SetTimerEx("Tank",7500,1,"i",playerid); // bei OnPlayerStateChange wenn motor == 1
    KillTimer(TankTimer[i]); // bei Tank-Public wenn Tank Leer ist











    Danke für eure hilfe


    MfG [aKoE]nanyo

    Hallo Breadfishes^^


    auf meinem Homeserver (127.0.0.1) kann ich ohne Probleme Spawnen und zoggn, jedoch auf dem Server den ich betreibe kann man nicht spawnen oO (der Server dort, ist ein Linux Server)


    hier die Spawn Sachen





    public OnPlayerRequestClass(playerid,classid)
    {
    if(GetPVarInt(playerid,"Leader") == 0 && GetPVarInt(playerid,"Member") == 0 && GetPVarInt(playerid,"Co-Leader") == 0)
    {
    SetSpawnInfo(playerid,0,GetPVarInt(playerid,"Skin"),1481.2429,-1765.4749,18.7958,90,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 1 || GetPVarInt(playerid,"Member") == 1 || GetPVarInt(playerid,"Co-Leader") == 1)
    {
    SetSpawnInfo(playerid,1,GetPVarInt(playerid,"Skin"),1528.1154,-1678.1752,5.8906,270,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 2 || GetPVarInt(playerid,"Member") == 2 || GetPVarInt(playerid,"Co-Leader") == 2)
    {
    SetSpawnInfo(playerid,2,GetPVarInt(playerid,"Skin"),687.8657,-1275.8818,13.5580,270,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 3 || GetPVarInt(playerid,"Member") == 3 || GetPVarInt(playerid,"Co-Leader") == 3)
    {
    SetSpawnInfo(playerid,3,GetPVarInt(playerid,"Skin"),1176.8591,-1338.8954,13.9571,90.7024,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 4 || GetPVarInt(playerid,"Member") == 4 || GetPVarInt(playerid,"Co-Leader") == 4)
    {
    SetSpawnInfo(playerid,4,GetPVarInt(playerid,"Skin"),2512.8181,-1666.4994,13.5704,270,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 5 || GetPVarInt(playerid,"Member") == 5 || GetPVarInt(playerid,"Co-Leader") == 5)
    {
    SetSpawnInfo(playerid,5,GetPVarInt(playerid,"Skin"),1125.1277,-2037.3474,69.8820,270,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 6 || GetPVarInt(playerid,"Member") == 6 || GetPVarInt(playerid,"Co-Leader") == 6)
    {
    SetSpawnInfo(playerid,6,GetPVarInt(playerid,"Skin"),751.3002,-1356.7736,13.5000,270,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 7 || GetPVarInt(playerid,"Member") == 7 || GetPVarInt(playerid,"Co-Leader") == 7)
    {
    SetSpawnInfo(playerid,7,GetPVarInt(playerid,"Skin"),1220.0416,-1812.7147,16.5938,179.1384,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 8 || GetPVarInt(playerid,"Member") == 8 || GetPVarInt(playerid,"Co-Leader") == 8)
    {
    SetSpawnInfo(playerid,8,GetPVarInt(playerid,"Skin"),-525.1820,-502.0846,25.5234,270,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 9 || GetPVarInt(playerid,"Member") == 9 || GetPVarInt(playerid,"Co-Leader") == 9)
    {
    SetSpawnInfo(playerid,9,GetPVarInt(playerid,"Skin"),1957.0682,-2213.2217,16.1250,270,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    else if(GetPVarInt(playerid,"Leader") == 10 || GetPVarInt(playerid,"Member") == 10 || GetPVarInt(playerid,"Co-Leader") == 10)
    {
    SetSpawnInfo(playerid,10,GetPVarInt(playerid,"Skin"),501.2040,-74.6583,998.7578,270,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    return 0;
    }
    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(GetPVarInt(playerid,"Leader") == 0 && GetPVarInt(playerid,"Member") == 0 && GetPVarInt(playerid,"Co-Leader") == 0)
    { SetPlayerPos(playerid,1481.2429,-1765.4749,18.7958); SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); }
    if(GetPVarInt(playerid,"Leader") == 1 || GetPVarInt(playerid,"Member") == 1 || GetPVarInt(playerid,"Co-Leader") == 1)
    { SetPlayerPos(playerid,1528.1154,-1678.1752,5.8906); if(GetPVarInt(playerid,"Leader") == 1) { SetPlayerSkin(playerid,283); } else { SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); } }
    if(GetPVarInt(playerid,"Leader") == 2 || GetPVarInt(playerid,"Member") == 2 || GetPVarInt(playerid,"Co-Leader") == 2)
    { SetPlayerPos(playerid,687.8657,-1275.8818,13.5580); if(GetPVarInt(playerid,"Leader") == 2) { SetPlayerSkin(playerid,172); } else { SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); } }
    if(GetPVarInt(playerid,"Leader") == 3 || GetPVarInt(playerid,"Member") == 3 || GetPVarInt(playerid,"Co-Leader") == 3)
    { SetPlayerPos(playerid,1176.8591,-1338.8954,13.9571); if(GetPVarInt(playerid,"Leader") == 3) { SetPlayerSkin(playerid,274); } else { SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); } }
    if(GetPVarInt(playerid,"Leader") == 4 || GetPVarInt(playerid,"Member") == 4 || GetPVarInt(playerid,"Co-Leader") == 4)
    { SetPlayerPos(playerid,2512.8181,-1666.4994,13.5704); if(GetPVarInt(playerid,"Leader") == 4) { SetPlayerSkin(playerid,269); } else { SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); } }
    if(GetPVarInt(playerid,"Leader") == 5 || GetPVarInt(playerid,"Member") == 5 || GetPVarInt(playerid,"Co-Leader") == 5)
    { SetPlayerPos(playerid,1125.1277,-2037.3474,69.8820); if(GetPVarInt(playerid,"Leader") == 5) { SetPlayerSkin(playerid,147); } else { SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); } }
    if(GetPVarInt(playerid,"Leader") == 6 || GetPVarInt(playerid,"Member") == 6 || GetPVarInt(playerid,"Co-Leader") == 6)
    { SetPlayerPos(playerid,751.3002,-1356.7736,13.5000); if(GetPVarInt(playerid,"Leader") == 6) { SetPlayerSkin(playerid,295); } else { SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); } }
    if(GetPVarInt(playerid,"Leader") == 7 || GetPVarInt(playerid,"Member") == 7 || GetPVarInt(playerid,"Co-Leader") == 7)
    { SetPlayerPos(playerid,1220.0416,-1812.7147,16.5938); if(GetPVarInt(playerid,"Leader") == 7) { SetPlayerSkin(playerid,255); } else { SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); } }
    if(GetPVarInt(playerid,"Leader") == 8 || GetPVarInt(playerid,"Member") == 8 || GetPVarInt(playerid,"Co-Leader") == 8)
    { SetPlayerPos(playerid,-525.1820,-502.0846,25.5234); SetPlayerSkin(playerid,275); }
    if(GetPVarInt(playerid,"Leader") == 9 || GetPVarInt(playerid,"Member") == 9 || GetPVarInt(playerid,"Co-Leader") == 9)
    { SetPlayerPos(playerid,1957.0682,-2213.2217,16.1250); if(GetPVarInt(playerid,"Leader") == 9 || GetPVarInt(playerid,"Co-Leader") == 9) { SetPlayerSkin(playerid,187); } else if(GetPVarInt(playerid,"Member") == 9) { SetPlayerSkin(playerid,61); } }
    if(GetPVarInt(playerid,"Leader") == 10 || GetPVarInt(playerid,"Member") == 10 || GetPVarInt(playerid,"Co-Leader") == 10)
    { SetPlayerPos(playerid,501.2040,-74.6583,998.7578); SetPlayerInterior(playerid,11); SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin")); }
    CheckFirstLog(playerid);
    if(GetPVarInt(playerid,"Mieter") == 1 || GetPVarInt(playerid,"Hausbesitzer") == 1) {
    for(new h; h<MAX_HOUSES; h++)
    {
    SetPlayerPos(playerid,HInfo[h][TeleX],HInfo[h][TeleY],HInfo[h][TeleZ]);
    SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin"));
    }}
    GangZoneShowForPlayer(playerid,Grovezone,0x00800096);
    GangZoneShowForPlayer(playerid, Hellszone, 0x80800096);
    GangZoneShowForPlayer(playerid,NoDmZone,0xD8D8D896);
    GangZoneShowForPlayer(playerid,NoDmZone2,0xD8D8D896);
    SetTimerEx("NoDmTimer",5000,1,"i",playerid);
    if(InArrest[playerid] == 1)
    {
    SetPlayerPos(playerid,264.27612304688,87.547065734863,1002.2335205078);
    SetPlayerInterior(playerid,6);
    }
    }
    return 0;
    }











    danke schon mal im voraus

    dini_Set(filename[],Key[],Value[]);
    ganz einfach :D
    und laden mit dini_Get(filename[],Key[]);
    beispiel:


    dini_Set(Spielerdatei,"Email",Acc[playerid][Email]);


    Acc[playerid][Email] = dini_Get(Spielerdatei,"Email");