Raised This Month: $32 Target: $400
 8% 

[req] get_plugin: make all parameters starting from 4th optional


  
 
 
Thread Tools Display Modes
Author Message
VEN
Veteran Member
Join Date: Jan 2005
Old 02-10-2007 , 14:39   [req] get_plugin: make all parameters starting from 4th optional
#1

Code:
native get_plugin(index,filename[],len1,name[],len2,version[],len3,author[],len4,status[],len5,...); //
To avoid situations like this one:
Code:
get_plugin(plid, plugin_filename, sizeof plugin_filename - 1, dummy, sizeof dummy - 1, dummy, sizeof dummy - 1, dummy, sizeof dummy - 1, dummy, sizeof dummy - 1) //
we could make all parameters starting from 4th optional (like done with parse_loguser), e.g.:
Code:
native get_plugin(index,filename[],len1,name[] = "",len2 = 0,version[] = "",len3 = 0,author[] = "",len4 = 0,status[] = "",len5 = 0,...); //
Then it would be just:
Code:
get_plugin(plid, plugin_filename, sizeof plugin_filename - 1) //
more suitable.

Last edited by VEN; 02-10-2007 at 14:48.
VEN is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-10-2007 , 16:04   Re: [req] get_plugin: make all parameters starting from 4th optional
#2

This is fixed in revision 3303

I made the filename parameters optional as well.
sawce 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 20:39.


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