invalid function or declaration -
braduz - 06.02.2010
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
Re: invalid function or declaration -
bajskorv123 - 06.02.2010
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. ^^
Re: invalid function or declaration -
braduz - 06.02.2010
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 ^^
Re: invalid function or declaration -
braduz - 06.02.2010
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 :/
Re: invalid function or declaration -
bajskorv123 - 06.02.2010
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
Re: invalid function or declaration -
braduz - 06.02.2010
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