Two annoying errors!!
#1

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
{
  if (PRESSED(newkeys == (KEY_HORN)
  {
    if(PlayerToPoint(20.0, playerid, 1811.3328,-1890.3472,13.4070))
    {
    new sendername[24],string[128];
    MoveObject(taxigate,1810.8123779297, -1890.3559570313, 10.59866809845, 1.5);
    GetPlayerName(playerid,sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  }
}
  else if (newkeys == PRESSED(KEY_HORN)
  {
    if(PlayerToPoint(20.0, playerid, 1811.3328,-1890.3472,13.4070))
    {
    new sendername[24],string[128];
    MoveObject(taxigate,1810.927734375, -1890.3482666016, 14.12285900116, 1.5);
    GetPlayerName(playerid,sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s takes his/her remote and closes the gate.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
	}
  return 1;
  }
The Errors :

Код:
C:\Documents and Settings\User\щемзп дтбегд\ощзчйн\LARP New\gamemodes\EmiMod.pwn(43680) : error 017: undefined symbol "PRESSED"
C:\Documents and Settings\User\щемзп дтбегд\ощзчйн\LARP New\gamemodes\EmiMod.pwn(43692) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
Two annoying errors!! - by KanJi_Lee - 16.06.2010, 01:26
Re: Two annoying errors!! - by Johndaone - 16.06.2010, 02:32
Re: Two annoying errors!! - by TheInnocentOne - 16.06.2010, 04:37
Re: Two annoying errors!! - by jamesbond007 - 16.06.2010, 04:39
Re: Two annoying errors!! - by TheInnocentOne - 16.06.2010, 04:47
Re: Two annoying errors!! - by KanJi_Lee - 16.06.2010, 09:05
Re: Two annoying errors!! - by DJDhan - 16.06.2010, 09:31
Re: Two annoying errors!! - by KanJi_Lee - 16.06.2010, 09:56
Re: Two annoying errors!! - by DJDhan - 16.06.2010, 11:20
Re: Two annoying errors!! - by KanJi_Lee - 16.06.2010, 11:35

Forum Jump:


Users browsing this thread: 1 Guest(s)