Hi,
I have a problem with setting a pamateter to a set_task.
The idea is that an entity is respawned some time after it is picked up. Sorry, I don't have the full code in this computer.
PHP Code:
SpawnEnt(Float:origin)
{
//all the stuff
}
public EntTouch(ent, toucher)
{
new Float:origin[3]
pev(ent,pev_origin,origin)
set_task(10.0, "SpawnEnt",ent + ENTTASK, origin, 3)
remove_entity(ent)
}
I think, the idea is clear. I need the origin parameter for SpawnEnt function to set the previous origin to an entity. However the compliter shows a tag mismatch warning and no entity is created after set_task time is over.
I'm using random locations generator by joropito that's why I use this method for respawning an entity.