Hi (schon wieder errors^^)
hier
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)
{
{
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)
{
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;
}
{//
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
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
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
21 Errors.
Also ich weis net was falsch is -.-
MfG