invalid expression

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 (schon wieder errors^^)


    hier


    Spoiler anzeigen
    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    new vehicle, Model;
    vehicle = GetPlayerVehicleID(playerid);
    Model = GetVehicleModel(vehicle);
    new currentstate = GetPlayerState(playerid);
    if(Model == 462 )
    {
    if(PlayerInfo[playerid][autoschein] == 0)
    {
    SendClientMessage(playerid, Grün, "Du kannst auch andere Fahrzeuge fahren. Besorg dir erst einen Führerschein!");
    }
    }
    else if(PlayerInfo[playerid][autoschein] == 0 && currentstate == PLAYER_STATE_DRIVER)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, Rot, "Du hast keinen Führerschein!");
    }
    else
    {
    }
    if(Model == 420 || Model == 438 )
    {
    if(gTeam[playerid] != TEAM_TAXI)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, Rot, "Du bist kein Texi Fahrer!");
    }
    }
    else if(gTeam[playerid] == TEAM_TAXI)
    {
    print("Taxi betreten");
    }
    if (currentstate == PLAYER_STATE_DRIVER)
    {

    Spoiler anzeigen
    if(vehicle == mediccar)
    {//
    if(gTeam[playerid] == TEAM_MEDIC || gLeader[playerid] == TEAM_MEDIC ) //<<<<<<<<<<<da
    {
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    }
    if(vehicle == mediccar1)
    {//
    if(gTeam[playerid] == TEAM_MEDIC || gLeader[playerid] == TEAM_MEDIC )//<<<<<<<<<<<da
    {
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    }
    if(vehicle == mediccar2)
    {//
    if(gTeam[playerid] == TEAM_MEDIC || gLeader[playerid] == TEAM_MEDIC )//<<<<<<<<<<<da
    {
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    }
    if(vehicle == mediccar3)
    {//
    if(gTeam[playerid] == TEAM_MEDIC || gLeader[playerid] == TEAM_MEDIC )//<<<<<<<<<<<da
    {
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    }
    if(vehicle == mediccar4)
    {//
    if(gTeam[playerid] == TEAM_MEDIC || gLeader[playerid] == TEAM_MEDIC )//<<<<<<<<<<<da
    {
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    }
    if(vehicle == mediccar5)
    {//
    if(gTeam[playerid] == TEAM_MEDIC || gLeader[playerid] == TEAM_MEDIC )//<<<<<<<<<<<da
    {
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    }
    if(vehicle == mediccar6)
    {//
    if(gTeam[playerid] == TEAM_MEDIC || gLeader[playerid] == TEAM_MEDIC )//<<<<<<<<<<<da
    {
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
    }
    }
    }
    return 1;
    }


    Kommt das


    Spoiler anzeigen
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1109) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1109) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1112) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1120) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1120) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1123) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1131) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1131) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1134) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1142) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1142) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1145) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1153) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1153) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1156) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1164) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1164) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1167) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1175) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1175) : error 029: invalid expression, assumed zero
    F:\imaczeuch\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\realreallife.pwn(1178) : error 029: invalid expression, assumed zero
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Spoiler anzeigen
    21 Errors.


    Also ich weis net was falsch is -.-


    MfG

    Zitat

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

  • habe es definiert als #define TEAM MEDIC habe aber hinter...._MEDIC eine 4 vergessen xD danke Keks :D

    Zitat

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