Sziasztok.
Próbáltam írni egy kocsijavítást de a PRESSED-et nem ismeri a pawnom:
...pwn(583) : error 017: undefined symbol \"PRESSED\"
itt a kódom:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SUBMISSION)) {
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid, vehicleid))
{
SetVehicleHealth(vehicleid,1000.0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}
return 0;
}