Total viele errors und 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
  • Ich möchte erstmal nur dass die errors behoben werden.


    Den ganzen Script möcht ich nich zeigen :|






    351
    public OnPlayerInfoChange(playerid)



    356
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)


    es geht halt immerso weiter, sind alles publics!!
    :cursing: :cursing: :cursing: :cursing: :cursing: :cursing:

  • if (strcmp("/torauf", cmdtext, true, 10) == 0)
    {
    MoveObject(971, 1016.828918, -921.834167, 33.521324);
    SetTimer("Tor",500,1);
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!");


    }
    return 1;
    }



    Zuletzt war ich da daran.


    (Achja: Der CMD funktioniert nit.)

  • if (strcmp("/torauf", cmdtext, true, 10) == 0)
    {
    MoveObject(971, 1016.828918, -921.834167, 33.521324);
    SetTimer("Tor",500,1);
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!");



    return 1;
    }

    Zitat

    Nimm die Dinge wie sie sind: schlag, wenn du schlagen musst, tritt, wenn du Treten musst
    -Bruce Lee

  • Ich habe paar Fehler beseitigt. Kommen nur noch 3:


    D:\GTASAN~2\GAMEMO~1\UF.pwn(4) : warning 201: redefinition of constant/macro (symbol "COLOR")
    D:\GTASAN~2\GAMEMO~1\UF.pwn(5) : warning 201: redefinition of constant/macro (symbol "COLOR")
    D:\GTASAN~2\GAMEMO~1\UF.pwn(54) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(60) : warning 202: number of arguments does not match definition
    D:\GTASAN~2\GAMEMO~1\UF.pwn(181) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(203) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(234) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(337) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(339) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(346) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(411) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(428) : warning 217: loose indentation
    D:\GTASAN~2\GAMEMO~1\UF.pwn(173) : warning 204: symbol is assigned a value that is never used: "TorX"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.


    337 und bisschen drum rum (return 1; ist Zeile 337)
    339 ist auch drin


    }


    return 1;


    if (strcmp("/torauf", cmdtext, true, 10) == 0) //399




    346:
    return 1;


    Bitte hilft mir ;( ;( ;( ;(

  • Zitat

    D:\GTASAN~2\GAMEMO~1\UF.pwn(337) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(339) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(345) : error 010: invalid function or declaration



    3 Erros.


    return 1; //337
    } //338
    if (strcmp("/torauf", cmdtext, true, 10) == 0) //339
    { //340
    MoveObject(971, 1016.828918, -921.834167, 33.521324); //341
    SetTimer("TorX",500,1); //342
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!"); //343
    } //344
    return 1; //345


  • return 1; //337
    } //338
    if (strcmp("/torauf", cmdtext, true, 10) == 0) //339
    { //340
    MoveObject(971, 1016.828918, -921.834167, 33.521324); //341
    SetTimer("TorX",500,1); //342
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!"); //343


    return 1; //345
    }


    Nur zur Info, die klammer nach dem return

    Zitat

    Nimm die Dinge wie sie sind: schlag, wenn du schlagen musst, tritt, wenn du Treten musst
    -Bruce Lee

  • Die gleichen errors.


    Vllt. poste ich die Funktion vor 337:



    if(strcmp("/del", cmdtext, true, 10) == 0)
    if(IsPlayerAdmin(playerid))


    {


    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, "Cleared!");

  • komplett muss es so sein


    if(strcmp("/del", cmdtext, true, 10) == 0)
    {
    if(IsPlayerAdmin(playerid))


    {


    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, " ");
    SendClientMessageToAll(0x33CC00FF, "Cleared!");
    }
    return 1;
    }


    if (strcmp("/torauf", cmdtext, true, 10) == 0) //339
    { //340
    MoveObject(971, 1016.828918, -921.834167, 33.521324); //341
    SetTimer("TorX",500,1); //342
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!"); //343


    return 1; //345
    }



    Zitat

    Nimm die Dinge wie sie sind: schlag, wenn du schlagen musst, tritt, wenn du Treten musst
    -Bruce Lee

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Nur noch zwei errors. Komm zombie.modder, du schaffst das :D


    hilfe wäre nicht schlecht^^ *BFX anguck* :D



    D:\GTASAN~2\GAMEMO~1\UF.pwn(338) : error 010: invalid function or declaration
    D:\GTASAN~2\GAMEMO~1\UF.pwn(344) : error 010: invalid function or declaration


    338


    if (strcmp("/torauf", cmdtext, true, 10) == 0) //339



    344
    return 1; //345

    Einmal editiert, zuletzt von LoLi ()

  • if (strcmp(cmd, "/torauf", true) ==0 ) //339
    { //340
    MoveObject(971, 1016.828918, -921.834167, 33.521324); //341
    SetTimer("TorX",500,1); //342
    SendClientMessage(playerid,0x33CC00FF,"Nach 5 Sekunden ist dein Tor zu!"); //343


    return 1; //345
    }

  • Wie viele Commands hast du gesammt?


    Wenn es unter 40 sind lade sie bei pastebin.com hoch wenn nicht zeig mir den command über und unter /torauf

    Zitat

    Nimm die Dinge wie sie sind: schlag, wenn du schlagen musst, tritt, wenn du Treten musst
    -Bruce Lee