[LoH] Problem... Hiilfe :D

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
  • Hilfe...


    ~~~[ Include ]~~~
    #include <a_samp>
    #include <a_npc>
    #include <dini>
    #include <core>
    #include <float>
    #include <time>
    #include <file>
    #include <utils>
    #include <morphinc>
    #include <M_Bot>
    #include <ocmd>
    #include <sscanf2>
    //#include <noDMv4>
    #include <a_http>
    #include <streamer>
    #include <a_sampdb>

    ~~~[ eRRoRs ]~~~

    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(5011) : error 076: syntax error in the expression, or invalid function call
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(6052) : error 076: syntax error in the expression, or invalid function call
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(11796) : error 076: syntax error in the expression, or invalid function call
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(11798) : error 076: syntax error in the expression, or invalid function call
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(11799) : error 076: syntax error in the expression, or invalid function call
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(11800) : error 076: syntax error in the expression, or invalid function call
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(14617) : error 021: symbol already defined: "strtok"
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(14632) : error 047: array sizes do not match, or destination array is too small
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(29657) : error 047: array sizes do not match, or destination array is too small
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(44581) : warning 219: local variable "mod" shadows a variable at a preceding level
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(45981) : error 076: syntax error in the expression, or invalid function call
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(46526) : warning 203: symbol is never used: "Zeit"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    10 Errors.


    ~~~[ Code's ]~~~
    204 -->//Neue UHR mit Datum
    new Text:Time;
    new Text:Date;


    5011-->//DAtum und UHR
    TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);


    6052-->//Uhrzeit+datum
    TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);

    11796-->Time = TextDrawCreate(547.000000,28.000000,"--");


    11798-->TextDrawFont(Time,3);


    11800-->TextDrawColor(Time,0xffffffff);


    14617-->strtok(const string[], &index)
    {
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
    index++;
    }


    }
    14632-->result[index - offset] = EOS;
    return result;
    }


    29657-->GetPlayerName(playerid, sendername, sizeof(sendername));
    giveplayer = strtok(cmdtext, idx);
    f(!strlen(giveplayer))


    44581-->new mod=GetModType(componentid);
    switch (mod)


    45981-->format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
    TextDrawSetString(Time, string);



    :rolleyes:

  • okay, geschaft jetzt kommen 3 error's...


    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(14593) : error 021: symbol already defined: "strtok"
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(14608) : error 047: array sizes do not match, or destination array is too small
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(29633) : error 047: array sizes do not match, or destination array is too small
    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(44557) : warning 219: local variable "mod" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.



    strtok(const string[], &index)
    {
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
    index++;
    }


    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
    result[index - offset] = string[index];
    index++;
    }
    result[index - offset] = EOS;
    return result;
    }


    if(strcmp(cmd, "/accban", true) == 0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 4)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    giveplayer = strtok(cmdtext, idx);
    if(!strlen(giveplayer))
    {
    SendClientMessage(playerid,COLOR_GRAD2,"FEHLER: /accban [AccountName] (Korrekte Schreibweise erforderlich)");
    return 1;
    }

  • wow, :)


    Danke für deine Hilfe.


    » eins noch, ist der Warning schlimm..?


    C:\Users\JuRy\Desktop\[GDR]_by_sHoTx3\Sauberer Server\gamemodes\--[GDR]_by_sHoTx3--.pwn(44557) : warning 219: local variable "mod" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.


    public OnVehicleMod(playerid,vehicleid,componentid)
    {
    if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return true;}
    if(playerid!=-1)
    {
    new mod = GetModType(componentid);
    switch(mod)
    {
    case 1:
    {
    Carlist[playerid][mod1]=componentid;
    }
    case 2:
    {
    Carlist[playerid][mod2]=componentid;
    }
    case 3:
    {
    Carlist[playerid][mod3]=componentid;
    }
    case 4:
    {
    Carlist[playerid][mod4]=componentid;
    }
    case 5:
    {
    Carlist[playerid][mod5]=componentid;
    }
    case 6:
    {
    Carlist[playerid][mod6]=componentid;
    }
    case 7:
    {
    Carlist[playerid][mod7]=componentid;
    }
    case 8:
    {
    Carlist[playerid][mod8]=componentid;
    }
    case 9:
    {
    Carlist[playerid][mod9]=componentid;
    }
    case 10:
    {
    Carlist[playerid][mod10]=componentid;
    }
    case 11:
    {
    Carlist[playerid][mod11]=componentid;
    }
    case 12:
    {
    Carlist[playerid][mod12]=componentid;
    }
    case 13:
    {
    Carlist[playerid][mod13]=componentid;
    }
    case 14:
    {
    Carlist[playerid][mod14]=componentid;
    }
    case 15:
    {
    Carlist[playerid][mod15]=componentid;
    }
    case 16:
    {
    Carlist[playerid][mod16]=componentid;
    }
    case 17:
    {
    Carlist[playerid][mod17]=componentid;
    }
    default:
    {
    new string[128];
    format(string,128,"Unbekannte Komponentenid: %i",componentid);
    print(string);
    }
    }
    }
    return true;
    }