1 Error aber was ?

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
  • Hallo,



    was issen das...


    E:\pawno\include\TSS_LIB/TSS_core/TSS_core.own(75) : warning 219: local variable "object" shadows a variable at a preceding level
    E:\includes\drp-script.pwn(14380) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14381) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14382) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14383) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14384) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14386) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36409) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36409) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36422) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36422) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36441) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36441) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36442) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36442) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36461) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36461) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36462) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36462) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36482) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36482) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36483) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36483) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36504) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36504) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36505) : error 035: argument type mismatch (argument 3)
    E:\includes\drp-script.pwn(36510) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36510) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44406) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44406) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44411) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44411) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44412) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44412) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44417) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44417) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44422) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44422) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(49287) : warning 203: symbol is never used: "Turfs"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.



    habe GF EDIT



    LG

  • E:\pawno\include\TSS_LIB/TSS_core/TSS_core.own(75) : warning 219: local variable "object" shadows a variable at a preceding level

    Diese Variable überschreibt schon eine mit gleichem Namen bzw. sie ist schon vorhanden


    E:\includes\drp-script.pwn(36505) : error 035: argument type mismatch (argument 3)
    Passiert wenn du 2 Datentypen kombinierst die nicht passen, so wenn der Parameter 3 Float verlangt und du String angibst zu würde dieser Fehler erscheinen


    Die allerletzte Warnung deutet auf ein ungenutztes Symbol "Turfs", zugewiesen aber niemals verwendet.


    Der Rest weist auf fehlende oder zu viel Parameter in einer Funktion.

    Mfg. BlackFoX_UD_ alias [BFX]Explosion


  • if(strcmp(cmdtext,"/area",true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] >= 1331)
    {
    if(AreaTorOffen == 0)
    {
    CreateObject(AREA1,96.8248,1920.3931,11.8000,2.5);
    CreateObject(playerid,COLOR_YELLOW2," Area 51 ist nun geöffnet !");
    AreaTorOffen = 1;
    }
    else
    {
    CreateObject(AREA1,96.8248,1920.3931,16.3000,2.5);
    SendClientMessage(playerid,COLOR_YELLOW2," Area 51 ist nun geschlossen !");
    AreaTorOffen = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Dir ist es nicht erlaubt diesen Befehl zu benutzen !");
    }
    }
    return 1;
    }

  • Den CMD mit das hier ersetzen:
    if(strcmp(cmdtext,"/area",true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] >= 1331)
    {
    if(AreaTorOffen == 0)
    {
    CreateObject(AREA1,96.8248,1920.3931,11.8000,2.5);
    SendClientMessage(playerid,COLOR_YELLOW2," Area 51 ist nun geöffnet !");
    AreaTorOffen = 1;
    }
    else
    {
    CreateObject(AREA1,96.8248,1920.3931,16.3000,2.5);
    SendClientMessage(playerid,COLOR_YELLOW2," Area 51 ist nun geschlossen !");
    AreaTorOffen = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Dir ist es nicht erlaubt diesen Befehl zu benutzen !");
    }
    }
    return 1;
    }

  • lol.
    if(strcmp(cmdtext,"/area",true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] >= 1331)
    {
    if(AreaTorOffen == 0)
    {
    MoveObject(AREA1,96.8248,1920.3931,11.8000,2.5);
    SendClientMessage(playerid,COLOR_YELLOW2," Area 51 ist nun geöffnet !");
    AreaTorOffen = 1;
    }
    else
    {
    MoveObject(AREA1,96.8248,1920.3931,16.3000,2.5);
    SendClientMessage(playerid,COLOR_YELLOW2," Area 51 ist nun geschlossen !");
    AreaTorOffen = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Dir ist es nicht erlaubt diesen Befehl zu benutzen !");
    }
    }
    return 1;
    }

  • E:\pawno\include\TSS_LIB/TSS_core/TSS_core.own(75) : warning 219: local variable "object" shadows a variable at a preceding level
    E:\includes\drp-script.pwn(14380) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14381) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14382) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14383) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14384) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(14386) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36409) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36409) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36422) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36422) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36441) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36441) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36442) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36442) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36461) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36461) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36462) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36462) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36482) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36482) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36483) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36483) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36504) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36504) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36510) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(36510) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44406) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44406) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44411) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44411) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44412) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44412) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44417) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44417) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44422) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(44422) : warning 202: number of arguments does not match definition
    E:\includes\drp-script.pwn(49287) : warning 203: symbol is never used: "Turfs"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 10916 bytes
    Code size: 1991192 bytes
    Data size: 55123996 bytes
    Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:57158872 bytes


    38 Warnings.

  • Das sind nur Warnings.
    Also sie stellen keine "gefahr" dar für deine GameMode.
    Es wäre gut wenn du sie fixxen würdest, aber ist nicht so wichtig wie die errors.


    Und das wir diese 38-39 Warnings von hier aus für dich fixxen ist ein bisschen schwer :D