Raised This Month: $ Target: $400
 0% 

Type casting in functions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-22-2009 , 13:15   Re: Type casting in functions
Reply With Quote #1

Don't use the same name for natives name and the callback.

register_native ( "cp_teleport", "_cp_teleport" ); for example. or just native_cp_teleport.

public _cp_teleport ()
{

}

And since it's a native, the params are not passed like that. If I remember you have to use get_param() etc..
__________________

Last edited by Arkshine; 08-22-2009 at 13:17.
Arkshine is offline
Reply



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 15:06.


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