Error bitte Helfen [Mittel]

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 , undzwar habe ich erorrs bei meinen auf taste drücken auto reparieren .


    Erorrs :


    error 029: invalid expression, assumed zero
    error 017: undefined symbol "IsPlayerNotInVehicle"
    error 001: expected token: ";", but found ")"
    fatal error 107: too many error messages on one line


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



    4 Errors.


    Define :
    #define PRESSED(%0) \
    #define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))


    Zeilen :
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(PRESSED(KEY_SUBMISSION)) <<<<<<-------------(Error Zeile)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInVehicle(playerid, vehicleid))
    {
    SetVehicleHealth(vehicleid,1000.0);
    RepairVehicle(GetPlayerVehicleID(playerid));
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
    SendClientMessage(playerid,0x924161FF,"Vehicle Repaired");
    }
    if(PRESSED(KEY_ACTION))
    {
    if(PRESSED(KEY_ACTION))
    {
    if(IsPlayerNotInVehicle(playerid))
    {


    }
    }
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && AutoNOS[playerid] && (newkeys & KEY_ACTION || newkeys & KEY_FIRE)) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    return 1;
    }


    Danke , ich hoffe jemand kann helfen .

  • public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys == KEY_SUBMISSION && oldkeys = KEY_SUBMISSION)
    {
    SetVehicleHealth(vehicleid,1000.0);
    RepairVehicle(GetPlayerVehicleID(playerid));
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
    SendClientMessage(playerid,0x924161FF,"Vehicle Repaired");
    }
    if(PRESSED(KEY_ACTION))
    {
    if(PRESSED(KEY_ACTION))
    {
    if(IsPlayerNotInVehicle(playerid))
    {


    }
    }
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && AutoNOS[playerid] && (newkeys & KEY_ACTION || newkeys & KEY_FIRE)) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    return 1;
    }

  • C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4731) : warning 211: possibly unintended assignment
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4731) : error 022: must be lvalue (non-constant)
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4731) : warning 215: expression has no effect
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4731) : error 001: expected token: ";", but found ")"
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4731) : error 029: invalid expression, assumed zero
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4731) : fatal error 107: too many error messages on one line


  • public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys == KEY_SUBMISSION && oldkeys = KEY_SUBMISSION)
    {
    SetVehicleHealth(vehicleid,1000.0);
    RepairVehicle(GetPlayerVehicleID(playerid));
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
    SendClientMessage(playerid,0x924161FF,"Vehicle Repaired");
    }
    if(PRESSED(KEY_ACTION))
    {
    if(newkeys == KEY_ACTION && oldkeys == KEY_ACTION)
    {
    if(IsPlayerNotInVehicle(playerid))
    {


    }
    }
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && AutoNOS[playerid] && (newkeys & KEY_ACTION || newkeys & KEY_FIRE)) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    return 1;
    }

  • C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4732) : warning 211: possibly unintended assignment
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4732) : error 022: must be lvalue (non-constant)
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4732) : warning 215: expression has no effect
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4732) : error 001: expected token: ";", but found ")"
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4732) : error 029: invalid expression, assumed zero
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4732) : fatal error 107: too many error messages on one line


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



    4 Errors.


  • Gegen die Error Zeile Ersetzen.. :)


    dann kommt das :



    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(62) : warning 217: loose indentation
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4731) : error 029: invalid expression, assumed zero
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4731) : error 017: undefined symbol "IsPlayerNotInVehicle"
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4741) : warning 217: loose indentation
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4741) : error 029: invalid expression, assumed zero
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4741) : error 017: undefined symbol "IsPlayerNotInVehicle"
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4741) : error 001: expected token: ";", but found ")"
    C:\Users\Aris\Desktop\GTA\GTA-Server\Stunt-Server\gamemodes\www.pwn(4741) : fatal error 107: too many error messages on one line


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