invalid function or declaration
#1

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (HOLDING(KEY_CROUCH))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 213.8026,1876.0151,13.1406))
{
MoveObject(fronthqgate, 226.2012,1875.1792,13.8000, 2.00);
}
return 1;
}
if (RELEASED(KEY_CROUCH))
{
MoveObject(fronthqgate, 214.2012,1875.1792,13.8000, 2.00);
}
return 1;
}
if (HOLDING(KEY_SUBMISSION))
{
LinkVehicleToInterior(vehicleid, 1);
}
return 1;
}
if (RELEASED(KEY_SUBMISSION))
{
LinkVehicleToInterior(vehicleid, 0);
}
return 1;
}
i was copying the other 2 at the top (if (released)
yet it gives my errors
lol... wtf?

Код:
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.pwn(5446) : error 010: invalid function or declaration
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.pwn(5450) : error 010: invalid function or declaration
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.pwn(5452) : error 010: invalid function or declaration
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.pwn(5456) : error 010: invalid function or declaration
Reply
#2

Above main()
Код:
#define HOLDING(%0) \
	((newkeys & (%0)) == (%0))

#define RELEASED(%0) \
	(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
EDIT: Dont i remember you from CrazyStes Cops and Robbers? Ive stopped playing there, now i have my own server. ^^
Reply
#3

Quote:
Originally Posted by [NWA
Hannes ]
Above main()
Код:
#define HOLDING(%0) \
	((newkeys & (%0)) == (%0))

#define RELEASED(%0) \
	(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
EDIT: Dont i remember you from CrazyStes Cops and Robbers? Ive stopped playing there, now i have my own server. ^^
hey hannes ^^
Reply
#4

Quote:
Originally Posted by [NWA
Hannes ]
Above main()
Код:
#define HOLDING(%0) \
	((newkeys & (%0)) == (%0))

#define RELEASED(%0) \
	(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
EDIT: Dont i remember you from CrazyStes Cops and Robbers? Ive stopped playing there, now i have my own server. ^^
I have allready defined :/
Reply
#5

Will this help? Only errors i get is undefined symbols that i guess you already have defined in your script
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if (HOLDING(KEY_CROUCH))
  {
    if(IsPlayerInRangeOfPoint(playerid,3.0,213.8026,1876.0151,13.1406))
    {
      MoveObject(fronthqgate, 226.2012,1875.1792,13.8000, 2.00);
    }
  }
 
  if (RELEASED(KEY_CROUCH))
  {
    MoveObject(fronthqgate, 214.2012,1875.1792,13.8000, 2.00);
  }
 
  if (HOLDING(KEY_SUBMISSION))
  {
    LinkVehicleToInterior(vehicleid, 1);
  }
 
  if (RELEASED(KEY_SUBMISSION))
  {
    LinkVehicleToInterior(vehicleid, 0);
  }
  return 1;
}
EDIT: If you remember anything of NWA (Ali_G, Assassin, Eazy_E, Adam) I wanna tell you that i have joined it and if you wanna come talk to us we have a forum, Click --> >>NWA<< <-- Click
Reply
#6

Quote:
Originally Posted by [NWA
Hannes ]
Will this help? Only errors i get is undefined symbols that i guess you already have defined in your script
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if (HOLDING(KEY_CROUCH))
  {
    if(IsPlayerInRangeOfPoint(playerid,3.0,213.8026,1876.0151,13.1406))
    {
      MoveObject(fronthqgate, 226.2012,1875.1792,13.8000, 2.00);
    }
  }
 
  if (RELEASED(KEY_CROUCH))
  {
    MoveObject(fronthqgate, 214.2012,1875.1792,13.8000, 2.00);
  }
 
  if (HOLDING(KEY_SUBMISSION))
  {
    LinkVehicleToInterior(vehicleid, 1);
  }
 
  if (RELEASED(KEY_SUBMISSION))
  {
    LinkVehicleToInterior(vehicleid, 0);
  }
  return 1;
}
EDIT: If you remember anything of NWA (Ali_G, Assassin, Eazy_E, Adam) I wanna tell you that i have joined it and if you wanna come talk to us we have a forum, Click --> >>NWA<< <-- Click
Neh I have my own server, working on adding a monorail to it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)