Klammerfehler?!

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
  • pawno\include\M_Bot.inc(142) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\M_Bot.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\M_Bot.inc(287) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\M_Bot.inc(528) : warning 204: symbol is assigned a value that is never used: "ammo"
    pawno\include\M_Bot.inc(528) : warning 204: symbol is assigned a value that is never used: "weapon"
    pawno\include\M_Bot.inc(807) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\sscanf.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level
    pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
    (3620) : warning 219: local variable "string" shadows a variable at a preceding level
    (3657) : warning 219: local variable "string" shadows a variable at a preceding level
    (3735) : warning 219: local variable "string" shadows a variable at a preceding level
    (3763) : warning 219: local variable "string" shadows a variable at a preceding level
    (3830) : warning 219: local variable "string" shadows a variable at a preceding level
    (3926) : warning 219: local variable "string" shadows a variable at a preceding level
    (4231) : warning 219: local variable "string" shadows a variable at a preceding level
    (4810) : warning 219: local variable "string" shadows a variable at a preceding level
    (5127) : warning 219: local variable "string" shadows a variable at a preceding level
    (5165) : warning 219: local variable "string" shadows a variable at a preceding level
    (5175) : warning 219: local variable "string" shadows a variable at a preceding level
    (5196) : warning 219: local variable "string" shadows a variable at a preceding level
    (5291) : warning 219: local variable "string" shadows a variable at a preceding level
    (5306) : warning 219: local variable "string" shadows a variable at a preceding level
    (5353) : warning 219: local variable "string" shadows a variable at a preceding level
    (5368) : warning 219: local variable "string" shadows a variable at a preceding level
    (5421) : warning 219: local variable "string" shadows a variable at a preceding level
    (5623) : warning 216: nested comment
    (5706) : warning 204: symbol is assigned a value that is never used: "valid_shot"
    (5811) : warning 219: local variable "string" shadows a variable at a preceding level
    (5869) : warning 219: local variable "string" shadows a variable at a preceding level
    (6776) : warning 219: local variable "string" shadows a variable at a preceding level
    (7375) : warning 219: local variable "string" shadows a variable at a preceding level
    (7385) : warning 219: local variable "string" shadows a variable at a preceding level
    (7395) : warning 219: local variable "string" shadows a variable at a preceding level
    (7404) : warning 219: local variable "string" shadows a variable at a preceding level
    (7413) : warning 219: local variable "string" shadows a variable at a preceding level
    (7422) : warning 219: local variable "string" shadows a variable at a preceding level
    (7431) : warning 219: local variable "string" shadows a variable at a preceding level
    (7440) : warning 219: local variable "string" shadows a variable at a preceding level
    (7449) : warning 219: local variable "string" shadows a variable at a preceding level
    (7460) : warning 219: local variable "string" shadows a variable at a preceding level
    (8857) : warning 216: nested comment
    (8876) : warning 216: nested comment
    (9247) : warning 219: local variable "string" shadows a variable at a preceding level
    (10423) : warning 219: local variable "string" shadows a variable at a preceding level
    (11317) : warning 219: local variable "string" shadows a variable at a preceding level
    (11365) : warning 219: local variable "string" shadows a variable at a preceding level
    (11402) : warning 219: local variable "string" shadows a variable at a preceding level
    (11888) : warning 219: local variable "string" shadows a variable at a preceding level
    (13158) : warning 219: local variable "string" shadows a variable at a preceding level
    (19163) : warning 219: local variable "string" shadows a variable at a preceding level
    (19322) : warning 219: local variable "string" shadows a variable at a preceding level
    (19384) : warning 219: local variable "string" shadows a variable at a preceding level
    (20193) : warning 219: local variable "string" shadows a variable at a preceding level
    (20231) : warning 219: local variable "string" shadows a variable at a preceding level
    (20269) : warning 219: local variable "string" shadows a variable at a preceding level
    (20507) : warning 219: local variable "string" shadows a variable at a preceding level
    (20514) : warning 219: local variable "string" shadows a variable at a preceding level
    (20530) : warning 219: local variable "string" shadows a variable at a preceding level
    (20547) : warning 219: local variable "string" shadows a variable at a preceding level
    (20561) : warning 219: local variable "string" shadows a variable at a preceding level
    (20575) : warning 219: local variable "string" shadows a variable at a preceding level
    (20589) : warning 219: local variable "string" shadows a variable at a preceding level
    (20603) : warning 219: local variable "string" shadows a variable at a preceding level
    (20617) : warning 219: local variable "string" shadows a variable at a preceding level
    (20634) : warning 219: local variable "string" shadows a variable at a preceding level
    (20648) : warning 219: local variable "string" shadows a variable at a preceding level
    (20662) : warning 219: local variable "string" shadows a variable at a preceding level
    (20677) : warning 219: local variable "string" shadows a variable at a preceding level
    (20705) : warning 219: local variable "string" shadows a variable at a preceding level
    (20719) : warning 219: local variable "string" shadows a variable at a preceding level
    (20781) : warning 219: local variable "string" shadows a variable at a preceding level
    (20857) : warning 219: local variable "pID" shadows a variable at a preceding level
    (20977) : warning 219: local variable "pID" shadows a variable at a preceding level
    (21034) : warning 219: local variable "string" shadows a variable at a preceding level
    (41850) : error 047: array sizes do not match, or destination array is too small
    (41896) : error 047: array sizes do not match, or destination array is too small
    (53327) : warning 219: local variable "string" shadows a variable at a preceding level
    (53421) : warning 219: local variable "string" shadows a variable at a preceding level
    (53611) : warning 219: local variable "string" shadows a variable at a preceding level
    (55870) : warning 219: local variable "string" shadows a variable at a preceding level
    (55927) : warning 219: local variable "string" shadows a variable at a preceding level
    (55956) : warning 219: local variable "string" shadows a variable at a preceding level
    (55973) : warning 219: local variable "string" shadows a variable at a preceding level
    (55990) : warning 219: local variable "string" shadows a variable at a preceding level
    (56256) : warning 219: local variable "string" shadows a variable at a preceding level
    (56416) : warning 219: local variable "string" shadows a variable at a preceding level
    (56446) : warning 219: local variable "string" shadows a variable at a preceding level
    (56481) : warning 219: local variable "string" shadows a variable at a preceding level
    (56510) : warning 219: local variable "string" shadows a variable at a preceding level
    (56569) : warning 219: local variable "string" shadows a variable at a preceding level
    (58748) : warning 219: local variable "string" shadows a variable at a preceding level
    (60388) : warning 219: local variable "string" shadows a variable at a preceding level
    (62314) : warning 219: local variable "string" shadows a variable at a preceding level
    (62592) : warning 219: local variable "string" shadows a variable at a preceding level
    (62595) : warning 219: local variable "sHealth" shadows a variable at a preceding level
    (62595) : warning 219: local variable "sArmor" shadows a variable at a preceding level
    (62615) : warning 219: local variable "pID" shadows a variable at a preceding level
    (63077) : warning 219: local variable "string" shadows a variable at a preceding level
    (63133) : warning 219: local variable "string" shadows a variable at a preceding level
    (63311) : warning 219: local variable "string" shadows a variable at a preceding level
    (63479) : warning 219: local variable "pID" shadows a variable at a preceding level
    (63526) : warning 219: local variable "string" shadows a variable at a preceding level
    (63758) : warning 219: local variable "string" shadows a variable at a preceding level
    (64448) : warning 219: local variable "string" shadows a variable at a preceding level
    (65252) : warning 219: local variable "string" shadows a variable at a preceding level
    (65275) : warning 219: local variable "string" shadows a variable at a preceding level
    (65430) : warning 219: local variable "pID" shadows a variable at a preceding level
    (65430) : warning 219: local variable "string" shadows a variable at a preceding level
    (65448) : warning 219: local variable "pID" shadows a variable at a preceding level
    (65448) : warning 219: local variable "string" shadows a variable at a preceding level
    (65490) : warning 219: local variable "string" shadows a variable at a preceding level
    (65491) : error 021: symbol already defined: "strtok"
    (65506) : error 047: array sizes do not match, or destination array is too small
    (65926) : warning 216: nested comment
    (65970) : warning 216: nested comment
    (65975) : error 054: unmatched closing brace ("}")
    (66041) : warning 216: nested comment
    (67327) : warning 219: local variable "string" shadows a variable at a preceding level
    (67328) : error 021: symbol already defined: "StripNewLine"
    (67497) : warning 219: local variable "string" shadows a variable at a preceding level
    (67600) : warning 219: local variable "pID" shadows a variable at a preceding level
    (67600) : warning 219: local variable "string" shadows a variable at a preceding level
    (67628) : warning 219: local variable "string" shadows a variable at a preceding level
    (67699) : warning 219: local variable "string" shadows a variable at a preceding level
    (67720) : warning 219: local variable "string" shadows a variable at a preceding level
    (67765) : warning 219: local variable "string" shadows a variable at a preceding level
    (67891) : warning 219: local variable "string" shadows a variable at a preceding level
    (67938) : warning 219: local variable "string" shadows a variable at a preceding level
    (67974) : warning 219: local variable "string" shadows a variable at a preceding level
    (67993) : warning 219: local variable "string" shadows a variable at a preceding level
    (68092) : warning 219: local variable "string" shadows a variable at a preceding level
    (68318) : warning 219: local variable "pID" shadows a variable at a preceding level
    (68318) : warning 219: local variable "string" shadows a variable at a preceding level
    (68390) : warning 219: local variable "string" shadows a variable at a preceding level
    (68428) : warning 219: local variable "pID" shadows a variable at a preceding level
    (68428) : warning 219: local variable "string" shadows a variable at a preceding level
    (68551) : warning 219: local variable "string" shadows a variable at a preceding level
    (68576) : warning 219: local variable "string" shadows a variable at a preceding level
    (68578) : error 017: undefined symbol "IsValidVehicle"
    (68603) : error 010: invalid function or declaration
    (68605) : error 010: invalid function or declaration
    (68608) : error 010: invalid function or declaration
    (68611) : error 010: invalid function or declaration
    (68613) : error 021: symbol already defined: "TogglePlayerSpectating"
    (68615) : error 008: must be a constant expression; assumed zero
    (68615) : error 021: symbol already defined: "M_SetPlayerPos"
    (68619) : error 054: unmatched closing brace ("}")
    (68620) : error 010: invalid function or declaration
    (68622) : error 010: invalid function or declaration
    (68623) : error 010: invalid function or declaration
    (68626) : error 021: symbol already defined: "GetPlayerHealth"
    (68629) : error 010: invalid function or declaration
    (68632) : error 021: symbol already defined: "SetPlayerVirtualWorld"
    (68635) : error 010: invalid function or declaration
    (68638) : error 021: symbol already defined: "GetPlayerPos"
    (68641) : error 010: invalid function or declaration
    (68642) : error 010: invalid function or declaration
    (68644) : error 010: invalid function or declaration


    26 Errors weiterhin


    need help.

    Einmal editiert, zuletzt von ScriptHelp ()

  • Folgende Probleme waren im Code:
    In Zeile 65975: Eine } die ohne Zusammenhang dort stand.


    StripNewLine und strtok waren doppelt deklariert.


    In Zeile 41830:
    new aktion[200];
    zu:
    new aktion[256];


    Und:
    ocmd@2:spec,tv(playerid, params[])
    zu:
    ocmd:tv(playerid, params[]) return ocmd_spec(playerid, params);
    ocmd:spec(playerid, params[])
    Da du noch eine alte Version von ocmd nutzt.


    if(!IsValidVehicle(id)) return SendClientMessage(playerid, COLOR_RED, "Fehler: Gebe eine gültige Fahrzeug ID ein!");
    zu:
    if(!GetVehicleModel(id)) return SendClientMessage(playerid, COLOR_RED, "Fehler: Gebe eine gültige Fahrzeug ID ein!");


    Zudem waren einige Variablen und Array zwar deklariert, aber durch eine Menge auskommentierten Code wurden die unnötig. Die habe ich ebenfalls auskommentiert.
    Außerdem waren noch ein paar verschachtelte Kommentare vorhanden.


    Die Warnungen
    warning 219: local variable "string" shadows a variable at a preceding level
    waren nur eine Nebenursache der ganzen Errors. Als die Errors ausgebessert waren, war diese Warnung automatisch weg.



    Code
    pawno\include\M_Bot.inc(528) : warning 204: symbol is assigned a value that is never used: "ammo"
    pawno\include\M_Bot.inc(528) : warning 204: symbol is assigned a value that is never used: "weapon"

    Dies wurde durch eine Änderung in der Include hervorgerufen. Die beiden Deklarationen wurden auskommentiert.



    Der Code kompiliert nun frei von Warnungen und Errors.