26.01.2012, 15:56
Here is the Code. But it show error when i compile it. The error is: error 017: undefined symbol "PRESSED"
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if (IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
}
return 1;
}
I tried to #define PRESSED but it comes alot more errors? I need help ,please
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if (IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
}
return 1;
}
I tried to #define PRESSED but it comes alot more errors? I need help ,please