Raised This Month: $ Target: $400
 0% 

Type casting in functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
orglee
Member
Join Date: Dec 2005
Old 08-22-2009 , 10:44   Type casting in functions
Reply With Quote #1

Hello. I would like to create function with default value.
PHP Code:
(stock/public) myFunction(Float:myVar={0.00.00.0})
{
  
// Function body

It will work BUT only if I'll declare it as 'stock' instead of 'public'. I want it to be a public to use it as native function ( usable in other plugins ) Is there any solution to do this without copying this 'stock' function into every plugin I'm gonna use it in?
orglee 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 15:06.


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