10.07.2012, 07:21
pawn Код:
if (newkeys == KEY_SECONDRY_FIRE)
{
if(GetPlayerInterior < 1) return cmd_enter;
else if(GetPlayerInterior >= 1) return cmd_exit;
}
if (newkeys == KEY_SECONDRY_FIRE)
{
if(GetPlayerInterior < 1) return cmd_enter;
else if(GetPlayerInterior >= 1) return cmd_exit;
}
if (newkeys == KEY_SECONDARY_FIRE)
{
if(GetPlayerInterior(playerid) < 1) return cmd_enter;
else if(GetPlayerInterior(playerid) >= 1) return cmd_exit;
}
KEY_SECONDARY_FIRE
You missed an 'A'. EDIT: Full code pawn Код:
|
hrp.pwn(18653) : error 017: undefined symbol "newkeys"
hrp.pwn(18655) : error 076: syntax error in the expression, or invalid function call
hrp.pwn(18656) : error 076: syntax error in the expression, or invalid function call
he missed out the _
This if (newkeys == KEY SECONDARY FIRE) To if (newkeys == KEY_SECONDARY_FIRE) |
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_FIRE)
{
if(GetPlayerInterior(playerid) < 1)
return cmd_enter;
else if(GetPlayerInterior(playerid) >= 1)
return cmd_exit;
}
return 1;
}
No I didn't?
pawn Код:
|