Errors nach cmd erstellung

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
  • Hallo Leute,


    Ich Arbeite seit ein paar Tagen an einem Freeroam script und habe aber leider ein Problem wen ich ein Cmd erstelle.
    Also wen ich 1 cmd drin habe bekomme ich keine errors und nichts
    aber wen ich einen zweiten einsetze kommen errors und zwar werden alle unteren publics als error angezeigt warum ?


    Mit freundlichen Grüßen
    [NgN]Nunchuck


    /edit Bespiel eingefügt


    Also hier ist es wen ich nu ein befehl drin habe dan habe ich auch 0 Errors:


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/Hilfe", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN,"______________Hilfe______________");
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Allgemein:");
    SendClientMessage(playerid, COLOR_LIGHTGREEN,"Deathmatch:");
    SendClientMessage(playerid, COLOR_RED,"Stunt:");
    SendClientMessage(playerid, COLOR_DBLUE,"Ports:");
    return 1;
    }
    return 0;
    }



    Und hier ist es wen ich 2 befehle drin habe:


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/test", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN,"______________Test______________");
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Allgemein:");
    SendClientMessage(playerid, COLOR_LIGHTGREEN,"Deathmatch:");
    SendClientMessage(playerid, COLOR_RED,"Stunt:");
    SendClientMessage(playerid, COLOR_DBLUE,"Ports:");
    return 1;
    }
    {
    if (strcmp("/Hilfe", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN,"______________Hilfe______________");
    return 1;
    }
    return 0;
    }



    Und die errors sind folgende

    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(253) : warning 217: loose indentation
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(263) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(263) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(263) : error 004: function "OnPlayerEnterVehicle" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(268) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(268) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(268) : error 004: function "OnPlayerExitVehicle" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(273) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(273) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(273) : error 004: function "OnPlayerStateChange" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(278) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(278) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(278) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(283) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(283) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(283) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(288) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(288) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(288) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(293) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(293) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(293) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(298) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(298) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(298) : error 004: function "OnRconCommand" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(303) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(303) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(303) : error 004: function "OnPlayerRequestSpawn" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(308) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(308) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(308) : error 004: function "OnObjectMoved" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(313) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(313) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(313) : error 004: function "OnPlayerObjectMoved" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(318) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(318) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(318) : error 004: function "OnVehicleMod" is not implemented
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(323) : warning 225: unreachable code
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(323) : error 029: invalid expression, assumed zero
    G:\Samp Sachen\samp03csvr_win32\gamemodes\Germanwardragons.pwn(323) : error 004: function "OnVehiclePaintjob" is not implemented


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



    26 Errors.

  • public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/test", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN,"______________Test______________");
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Allgemein:");
    SendClientMessage(playerid, COLOR_LIGHTGREEN,"Deathmatch:");
    SendClientMessage(playerid, COLOR_RED,"Stunt:");
    SendClientMessage(playerid, COLOR_DBLUE,"Ports:");
    return 1;
    }
    if (strcmp("/Hilfe", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN,"______________Hilfe______________");
    return 1;
    }
    return 0;
    }
    müsste funktionieren