[WICHTIG] 2 Komische Errors [WICHTIG]

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 bekomme 2 Komische Errors:


    error 035: argument type mismatch (argument 1)



    Code:



    new Hour,Minute,Sec;
    gettime(Hour,Minute,Sec);
    new year,month,day,mtext[20], dtext[20];
    getdate(year, month, day);
    if(Hour == 0 && Minute == 0)
    {
    new String[12];
    new DString[100];
    if(month == 1) { mtext = "01"; }
    else if(month == 2) { mtext = "02"; }
    else if(month == 3) { mtext = "03"; }
    else if(month == 4) { mtext = "04"; }
    else if(month == 5) { mtext = "05"; }
    else if(month == 6) { mtext = "06"; }
    else if(month == 7) { mtext = "07"; }
    else if(month == 8) { mtext = "08"; }
    else if(month == 9) { mtext = "09"; }
    else if(month == 10) { mtext = "10"; }
    else if(month == 11) { mtext = "11"; }
    else if(month == 12) { mtext = "12"; }
    if(day == 1) { dtext = "01"; }
    else if(day == 2) { dtext = "02"; }
    else if(day == 3) { dtext = "03"; }
    else if(day == 4) { dtext = "04"; }
    else if(day == 5) { dtext = "05"; }
    else if(day == 6) { dtext = "06"; }
    else if(day == 7) { dtext = "07"; }
    else if(day == 8) { dtext = "08"; }
    else if(day == 9) { dtext = "09"; }
    else if(day == 10) { dtext = "10"; }
    else if(day == 11) { dtext = "11"; }
    else if(day == 12) { dtext = "12"; }
    else if(day == 13) { dtext = "13"; }
    else if(day == 14) { dtext = "14"; }
    else if(day == 15) { dtext = "15"; }
    else if(day == 16) { dtext = "16"; }
    else if(day == 17) { dtext = "17"; }
    else if(day == 18) { dtext = "18"; }
    else if(day == 19) { dtext = "19"; }
    else if(day == 20) { dtext = "20"; }
    else if(day == 21) { dtext = "21"; }
    else if(day == 22) { dtext = "22"; }
    else if(day == 23) { dtext = "23"; }
    else if(day == 24) { dtext = "24"; }
    else if(day == 25) { dtext = "25"; }
    else if(day == 26) { dtext = "26"; }
    else if(day == 27) { dtext = "27"; }
    else if(day == 28) { dtext = "28"; }
    else if(day == 29) { dtext = "29"; }
    else if(day == 30) { dtext = "30"; }
    else if(day == 31) { dtext = "31"; }
    format(String, sizeof(String),"~g~Uhrzeit: ~w~%d",Hour,Minute);
    TextDrawSetString(Statistik59,String);


    format(DString, sizeof(DString),"~g~Datum: ~w~%d",dtext,mtext,year);
    TextDrawSetString(Statistik60,DString);
    }



    Betroffene Zeile:



    TextDrawSetString(Statistik59,String);



    TextDrawSetString(Statistik60,DString);



    MfG