View Single Post
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-01-2009 , 16:16   Re: Half-Life Position, Velocity, and Angles (for n00bs)
Reply With Quote #9

Code:
    set_task( 2.0, "PutMeBackDammit", id, fOrigin, 2 )
}

public PutMeBackDammit( fOrigin[3], id )
You are passing fOrigin into set_task (will give you warning tag mismatch). Either use _: or convert it to an int vector first.
Secondly, you are only passing the first 2 dimensions through the set_task.
Also, in PutMeBackDammit fOrigin[3] should be iOrigin[3] since it isn't really declared a float.

I would suggest adding mins/maxs in the angles section.

And lastly, clean up your language, it's a little annoying with all the "dammit"s.

Anyway, cheers for the tut.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`