03.05.2017, 02:05
(
Последний раз редактировалось Freak@; 03.05.2017 в 02:48.
)
Tou editando um gm da net chamado Project Life, tou com problemas quando eu excluo uma public dele, gera erros em outras publics que estгo normal, que nгo mexi. ele tem essa define abaixo, й algumas publics.
pawn Код:
#define PLRP::%0(%1) forward %0(%1);\
public %0(%1)
PLRP::DestroyMe(objectid)
{
return DestroyObject(objectid);
}
PLRP::isPlayerInArea()
{
for(new c=0; c < MAX_VEHICLES; c++)
{
if(IsCarInHQMecLS(c))
{
Naorespawn[c] = 1;
}
else
{
Naorespawn[c] = 0;
}
}
}
PLRP::Jav(playerid)
{
if(!Javelin[playerid][1])
{
new
target = GetClosestPlayer(playerid);
if(target != -1)
{
GetPlayerPos(target, JavPos[playerid][0], JavPos[playerid][1], JavPos[playerid][2]);
if(IsPlayerInRangeOfPoint(playerid, 500.0, JavPos[playerid][0], JavPos[playerid][1], JavPos[playerid][2]))
{
new Float:a;
GetPlayerPos(playerid, JavPos[playerid][0], JavPos[playerid][1], JavPos[playerid][2]);
GetPlayerFacingAngle(playerid, a);
Javelin[playerid][0] = CreateObject(354, JavPos[playerid][0], JavPos[playerid][1], JavPos[playerid][2], 0.0, 90.0, 0.0);
MoveObject(Javelin[playerid][0], JavPos[playerid][0], JavPos[playerid][1], JavPos[playerid][2] + 100.0, 45.0);
GetPlayerPos(target, JavPos[playerid][0], JavPos[playerid][1], JavPos[playerid][2]);
Javelin[playerid][1] = 1;
}
}
}
return 0;
}