Hilfe bei Dini

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
  • So ich habe jetz mein Login register system auf dini umgebaut da mein anderes probleme mit dem passwort hatte nun
    aber bekomme ich ein paar warnings in diese zeilen:


    Login

    PlayerInfo[playerid][Level] = dini_IntSet(string,"Level");
    PlayerInfo[playerid][Geld] = dini_IntSet(string,"Geld");
    PlayerInfo[playerid][Heal] = dini_Float(string,"Heal");
    PlayerInfo[playerid][Armor] = dini_Float(string,"Armor");
    PlayerInfo[playerid][XKoord] = dini_Float(string,"XKoord");
    PlayerInfo[playerid][YKoord] = dini_Float(string,"YKoord");
    PlayerInfo[playerid][ZKoord] = dini_Float(string,"ZKoord");
    PlayerInfo[playerid][AKoord] = dini_Float(string,"AKoord");
    PlayerInfo[playerid][Neu] = dini_IntSet(string,"Neu");
    PlayerInfo[playerid][Skin] = dini_IntSet(string,"Skin");
    PlayerInfo[playerid][Inte] = dini_IntSet(string,"Inte");
    PlayerInfo[playerid][Virt] = dini_IntSet(string,"Virt");
    PlayerInfo[playerid][Bmkey] = dini_IntSet(string,"Bmkey");
    PlayerInfo[playerid][Bhkey] = dini_IntSet(string,"Bhkey");
    PlayerInfo[playerid][Brief] = dini_IntSet(string,"Brief");
    PlayerInfo[playerid][Keys] = dini_IntSet(string,"Keys");


    Update

    dini_IntSet(string,"Level",PlayerInfo[playerid][Level]);
    dini_IntSet(string,"Geld",PlayerInfo[playerid][Geld]);
    dini_Float(string,"Heal",PlayerInfo[playerid][Heal]);
    dini_Float(string,"Armor",PlayerInfo[playerid][Armor]);
    dini_Float(string,"XKoord",PlayerInfo[playerid][XKoord]);
    dini_Float(string,"YKoord",PlayerInfo[playerid][YKoord]);
    dini_Float(string,"ZKoord",PlayerInfo[playerid][ZKoord]);
    dini_Float(string,"AKoord",PlayerInfo[playerid][AKoord]);
    dini_IntSet(string,"Neu",PlayerInfo[playerid][Neu]);
    dini_IntSet(string,"Skin",PlayerInfo[playerid][Skin]);
    dini_IntSet(string,"Inte",PlayerInfo[playerid][Inte]);
    dini_IntSet(string,"Virt",PlayerInfo[playerid][Virt]);
    dini_IntSet(string,"Bmkey",PlayerInfo[playerid][Bmkey]);
    dini_IntSet(string,"Bhkey",PlayerInfo[playerid][Bhkey]);
    dini_IntSet(string,"Brief",PlayerInfo[playerid][Brief]);
    dini_IntSet(string,"Keys",PlayerInfo[playerid][Keys]);


    Code
    warning 202: number of arguments does not match definition


    (E) ZEilen

    Einmal editiert, zuletzt von Quini ()

  • PlayerInfo[playerid][Level] = dini_Int(string,"Level");
    PlayerInfo[playerid][Geld]= dini_Int(string,"Geld");
    PlayerInfo[playerid][Heal]= dini_Float(string,"Heal");
    PlayerInfo[playerid][Armor] = dini_Float(string,"Armor");
    PlayerInfo[playerid][XKoord] = dini_Float(string,"XKoord");
    PlayerInfo[playerid][YKoord] = dini_Float(string,"YKoord");
    PlayerInfo[playerid][ZKoord] = dini_Float(string,"ZKoord");
    PlayerInfo[playerid][AKoord] = dini_Float(string,"AKoord");
    PlayerInfo[playerid][Neu] = dini_Int(string,"Neu");
    PlayerInfo[playerid][Skin]= dini_Int(string,"Skin");
    PlayerInfo[playerid][Inte]= dini_Int(string,"Inte");
    PlayerInfo[playerid][Virt]= dini_Int(string,"Virt");
    PlayerInfo[playerid][Bmkey] = dini_Int(string,"Bmkey");
    PlayerInfo[playerid][Bhkey] = dini_Int(string,"Bhkey");
    PlayerInfo[playerid][Brief] = dini_Int(string,"Brief");
    PlayerInfo[playerid][Keys]= dini_Int(string,"Keys");


    Wenn du was lädst,darfst du es nicht setzen sondern muss es auslesen mithilfe von "dini_Int" und NICHT "dini_IntSet"!

  • Ok Nun Bekomme ich ein Warning in der Ini include:

    C:\Users\Qini\Desktop\Pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.


    wie behebe ich den hier die zeilen:


    Code
    stock DINI_StripNewLine(string[]) {
    	new len = strlen(string);
    	if (string[0]==0) return ;
    	if ((string[len - 1] == '\n') || (string[len - 1] == '\r')) {
    		string[len - 1] = 0;
    		if (string[0]==0) return ;
    		if ((string[len - 2] == '\n') || (string[len - 2] == '\r')) string[len - 2] = 0;
    	}
    }