Blitzer?!?

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
  • Ok also das kam jetzt alles durch den Blitzer:
    C:\Users\Robin\Desktop\Server\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\M_Bot.inc(147) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\M_Bot.inc(285) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\M_Bot.inc(292) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\M_Bot.inc(801) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\blitzer.inc(38) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2654) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2698) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2727) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2796) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2896) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2930) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3505) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3751) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3786) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3799) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3809) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3838) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3860) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3955) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3970) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4017) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4032) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4085) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4136) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4908) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5460) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5470) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5480) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5489) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5498) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5507) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5516) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5527) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5895) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(7295) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(7336) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(7471) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(8113) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(8304) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(8659) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(8863) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(9800) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(9842) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10245) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10842) : error 017: undefined symbol "dcmd_blitzer"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10842) : error 033: array must be indexed (variable "-unknown-")
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10842) : error 029: invalid expression, assumed zero
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10842) : fatal error 107: too many error messages on one line
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    4 Errors.


    Ich liste hier jetzt nochmal die Zeilen auf(nur Errors):public OnGameModeInit(){
    SetTimer("Blitzer_Timer", BLITZER_TIMER_INTERVALL, 1);
    dcmd_blitzer(playerid, params[]) { // <------ Hier ist die Fehler zeile (10842)
    new speed,radius;
    if (sscanf(params, "ii", speed, radius)) {
    SendClientMessage(playerid, 0xffffffff, "Benutzung: /blitzer [Geschwindigkeit] [Radius]");
    return 1;
    }
    AddBlitzer(playerid,speed,radius);
    }
    return 1;
    }



    Also ist der ganze Blitzerscript fehlerhaft xD
    murmelrund

  • Hi,
    um die warnings mit dem string wegzubekommen, benenne einfach die "string" von den Blitzersachen um in beispielsweise "string123". Statt dem dcmd_blitzer kanns du einach unter
    public OnPlayerCommandText(playerid, cmdtext[])
    das hier:


    if(strcmp("/blitzer",cmdtext,true)==0)
    {
    new speed,radius;
    if (sscanf(params, "ii", speed, radius))
    {
    SendClientMessage(playerid, 0xffffffff, "Benutzung: /blitzer [Geschwindigkeit] [Radius]");
    return 1;
    }
    AddBlitzer(playerid,speed,radius);
    }


    schreiben. Danach einfach das vom Blitzer ab dcmd_blitzer aus
    public OnGameModeInit()
    rausnehmen. Achja und das Blitzer-System ist nicht komplett fehlerhaft, sondern du hast es nur falsch angewendet.


    MfG tapete

  • Hey,
    Habe das jetzt so gemacht wie du es gesagt hast :D aber jetzt kriegt sich mein ganzes Script in die Haare hier Compiler:
    C:\Users\Robin\Desktop\Server\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\M_Bot.inc(147) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\M_Bot.inc(285) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\M_Bot.inc(292) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\M_Bot.inc(801) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\pawno\include\blitzer.inc(38) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2654) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2698) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2727) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2796) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2896) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(2930) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3505) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3751) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3786) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3799) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3809) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3838) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3860) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3955) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(3970) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4017) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4032) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4085) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4136) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(4908) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5460) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5470) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5480) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5489) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5498) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5507) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5516) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5527) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(5895) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(7295) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(7336) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(7471) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(8113) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(8304) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(8659) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(8863) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(9800) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(9842) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10245) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10846) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10855) : error 021: symbol already defined: "LoadProperty"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10856) : error 021: symbol already defined: "LoadBizz"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10858) : error 021: symbol already defined: "LoadSBizz"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10859) : error 021: symbol already defined: "LoadBoxer"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10860) : error 021: symbol already defined: "LoadStuff"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10861) : error 021: symbol already defined: "LoadIRC"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10862) : error 021: symbol already defined: "LoadFamilies"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10863) : error 021: symbol already defined: "LoadCK"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10864) : error 021: symbol already defined: "LoadTurfs"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10865) : error 021: symbol already defined: "LoadPapers"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10866) : error 021: symbol already defined: "LoadFraktionsKassen"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10894) : error 021: symbol already defined: "gettime"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10896) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10897) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10901) : error 021: symbol already defined: "SetPDistance"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10908) : error 021: symbol already defined: "EnableM_Bot"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10910) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10913) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10926) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10940) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10945) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10950) : error 010: invalid function or declaration
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10965) : error 021: symbol already defined: "AddStaticVehicle"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10967) : error 021: symbol already defined: "CreateVehicle"
    C:\Users\Robin\Desktop\Server\gamemodes\gfl.pwn(10971) : error 021: symbol already defined: "CreateVehicle"


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.