Raised This Month: $ Target: $400
 0% 

Method Parameters


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Minimum
Senior Member
Join Date: Jun 2006
Old 12-26-2007 , 19:28   Method Parameters
Reply With Quote #1

I noticed with methods such as server_print that there is this parameter at the end described as "any:...". I was wondering if I could put this into any methods I make. I tried just passing a string in and I was met with an error saying the string is incorrectly formatted. This error occurred on the line with server_print. Code:

Code:
public printMsg(const message[],any:...) {      server_print(message);     return PLUGIN_CONTINUE; }

Code:
new name[32] = "SchmoSalt"; printMsg("Your name is %s.",name);
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
 


Thread Tools
Display Modes

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 11:08.


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