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 .