Raised This Month: $ Target: $400
 0% 

Multiple function arguments


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
orglee
Member
Join Date: Dec 2005
Old 06-03-2009 , 16:16   Re: Multiple function arguments
Reply With Quote #3

Thank you. And what if I don't know approximate length of a Text.

Can I determine it somehow and create array appropriate for that string? Lengths of strings I would be using with that function can vary on different conditions. If I would adjust array length to longest string it would be simply a waste of server resources.

edit>
Thats what I'm trying to do

Code:
public Handle:SQLQueryCreate(const sQuery[], any:...) {     new sText[1024]         vformat(sText, strlen(sQuery), sQuery, 2);         log_amx("[CLIMB][STATS][QUERY] %s", sText)         return SQL_PrepareQuery(g_SqlConnection, sText) }

Last edited by orglee; 06-03-2009 at 16:31.
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 13:53.


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