26Errors mal ganz anders -.-

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
  • Ich habe schon Im Forum gestöbert und nix gefunden der genau das gleiche Problem hatte


    Diese Errors tauchen bei mir auf:



    C:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level
    C:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level
    C:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(890) : warning 219: local variable "x2" shadows a variable at a preceding level
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(890) : warning 219: local variable "y2" shadows a variable at a preceding level
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(890) : warning 219: local variable "z2" shadows a variable at a preceding level
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11330) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11330) : error 033: array must be indexed (variable "cmd")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11394) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11394) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11475) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11475) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11556) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11556) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11619) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11619) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11850) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11850) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11895) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11895) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11960) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11960) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11967) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(11967) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(12142) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(12142) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(12181) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(12181) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(12431) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(12431) : error 033: array must be indexed (variable "tmp")
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(12459) : error 017: undefined symbol "strtok"
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(12459) : error 033: array must be indexed (variable "tmp")


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



    26 Errrors


    kann mir einer Helfen??

  • So siehst du auch aus 8|
    Füg mal das hier ganz unten in dein Script ein:
    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;
    }

  • Dan hab ich noch die Fehler hier:


    Code
    C:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding levelC:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding levelC:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding levelC:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(897) : error 035: argument type mismatch (argument 1)C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(32798) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")


    Zitat
    Zitat

    C:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level

    Zitat

    C:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level

    Zitat

    C:\Users\Minecraft MOD\Desktop\scriptfiles\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level

    Zitat

    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(897) : error 035: argument type mismatch (argument 1)

    Zitat

    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(32798) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")

  • C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(897) : error 035: argument type mismatch (argument 1)
    C:\Users\Minecraft MOD\Desktop\scriptfiles\gamemodes\GermanReallife_By_MuKkI_[BoR]mr_FETjou_BFX.pwn(32798) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")


    Das sind Die letzen Sachen die Hier sind
    1. Ist ein Error
    2. Ist ein Warning

  • Das "public OnPlayerPrivMsg" einfach rauslöschen (und die Klammern und das return 1; natürlich auch).
    Und schreib hier noch die Zeile 897 aus deinem Script rein.
    Ah, und lade mal irgendwo deine "morphinc.inc" aus dem includes-Ordner hoch.

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen