Raised This Month: $ Target: $400
 0% 

Set_task tag mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-23-2010 , 19:07   Set_task tag mismatch
Reply With Quote #1

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(enttoucher)
{
    new 
Float:origin[3]
    
pev(ent,pev_origin,origin)   

    
set_task(10.0"SpawnEnt",ent ENTTASKorigin3)
    
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.
t3hNox is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode