(Zu) Viele Warnings!

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
  • Hi!


    Ich bekomme in meinem Script viele Errorcodes, doch weiß nicht, wie ich diese beheben kann.


    ErrorCodes

    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(190) : warning 213: tag mismatch
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(191) : warning 213: tag mismatch
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(193) : warning 213: tag mismatch
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(194) : warning 213: tag mismatch
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(681) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(681) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(681) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(681) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(701) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(701) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(701) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(701) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(1044) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(1044) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(1044) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(1044) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(172) : warning 204: symbol is assigned a value that is never used: "LSPD_Munni"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(191) : warning 204: symbol is assigned a value that is never used: "LSPD_Munni_Text"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(171) : warning 204: symbol is assigned a value that is never used: "LSPD_Uniform"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(190) : warning 204: symbol is assigned a value that is never used: "LSPD_Uniform_Text"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(181) : warning 204: symbol is assigned a value that is never used: "LVPD_Munni"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(193) : warning 204: symbol is assigned a value that is never used: "LVPD_Munni_Text"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(180) : warning 204: symbol is assigned a value that is never used: "LVPD_Uniform"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(194) : warning 204: symbol is assigned a value that is never used: "LVPD_Uniform_Text"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(163) : warning 204: symbol is assigned a value that is never used: "lvpd_garage_2"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    ErrorCodes
    25 Warnings.


    ScriptZeilen


    LSPD_Uniform_Text = Create3DTextLabel("Uniform\nauswählen\n{ffffff}/uniform", GRAU, 255.3841, 77.1049, 1003.6406, 40.0, 0, 1); // 190
    LSPD_Munni_Text = Create3DTextLabel("Waffen\nauswählen\n{ffffff}/waffen", GRAU, 227.4215,81.3636,1005.0391, 40.0, 0, 1); // 191

    LVPD_Munni_Text = Create3DTextLabel("Waffen\nauswählen\n{ffffff}/waffen", GRAU, 198.3351,167.6602,1003.0234, 40.0, 0, 1); // 193
    LVPD_Uniform_Text = Create3DTextLabel("Uniform\nauswählen\n{ffffff}/uniform", GRAU, 212.2694,182.6608,1003.0313, 40.0, 0, 1); // 194

    ScriptZeilen
    new motor, licht, alarm, door, bonnet, boot, objective; // 681
    new motor, licht, alarm, door, bonnet, boot, objective; // 701
    new motor, licht, alarm, door, bonnet, boot, objective; // 1044

    ScriptZeilen
    // Restliche Zeilen

    ScriptZeilen
    LSPD_Uniform = CreatePickup(1242, 1,255.3841,77.1049,1003.6406, -1); // 171
    LSPD_Munni = CreatePickup(1247, 1, 227.4215,81.3636,1005.0391, -1); // 172
    LVPD_Uniform = CreatePickup(1242, 1, 212.2694,182.6608,1003.0313, -1); // 180
    LVPD_Munni = CreatePickup(1247, 1, 198.3351,167.6602,1003.0234, -1); // 181

    LSPD_Uniform_Text = Create3DTextLabel("Uniform\nauswählen\n{ffffff}/uniform", GRAU, 255.3841, 77.1049, 1003.6406, 40.0, 0, 1); // 190
    LSPD_Munni_Text = Create3DTextLabel("Waffen\nauswählen\n{ffffff}/waffen", GRAU, 227.4215,81.3636,1005.0391, 40.0, 0, 1); // 191

    LVPD_Munni_Text = Create3DTextLabel("Waffen\nauswählen\n{ffffff}/waffen", GRAU, 198.3351,167.6602,1003.0234, 40.0, 0, 1); // 193
    LVPD_Uniform_Text = Create3DTextLabel("Uniform\nauswählen\n{ffffff}/uniform", GRAU, 212.2694,182.6608,1003.0313, 40.0, 0, 1); // 194

  • C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(190) : warning 213: tag mismatch
    = Es ist ein Tag zuwenig / zuviel
    shadows a variable at a preceding level
    = eine der beiden Variablen umbennennen
    symbol is assigned a value that is never used: "LSPD_Munni"
    = wird nicht benutzt