21.04.2018, 14:12
new
pFoundObject[MAX_EVOBJECTS],
pObject[MAX_EVOBJECTS],
questobjectss = 0;
enum objInfo
{
objID,
objModel,
FloatbjPosX,
FloatbjPosY,
FloatbjPosZ
};
new ObjectInfo[MAX_EVOBJECTS][objInfo];
function disconnectQuest(playerid)
{
for(new xx = 1; xx <= questobjectss; xx++)
{
if(PlayerInfo[playerid][pObject][xx] != 0)
{
DestroyDynamicPickup(PlayerInfo[playerid][pObject][xx]);
PlayerInfo[playerid][pObject][xx] = 0;
}
}
}
line: DestroyDynamicPickup(PlayerInfo[playerid][pObject][xx]);
pFoundObject[MAX_EVOBJECTS],
pObject[MAX_EVOBJECTS],
questobjectss = 0;
enum objInfo
{
objID,
objModel,
FloatbjPosX,
FloatbjPosY,
FloatbjPosZ
};
new ObjectInfo[MAX_EVOBJECTS][objInfo];
function disconnectQuest(playerid)
{
for(new xx = 1; xx <= questobjectss; xx++)
{
if(PlayerInfo[playerid][pObject][xx] != 0)
{
DestroyDynamicPickup(PlayerInfo[playerid][pObject][xx]);
PlayerInfo[playerid][pObject][xx] = 0;
}
}
}
line: DestroyDynamicPickup(PlayerInfo[playerid][pObject][xx]);