Raised This Month: $ Target: $400
 0% 

fprintf() having a limit on string size?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-18-2009 , 18:57   fprintf() having a limit on string size?
Reply With Quote #1

I use fprintf() in my plugin, and it seems that not all of the data is put into the file.
Code:
fprintf(f, "%s %f %f %f %f %f %f %i ^"%s^" ^"%s^" ^"%s^" ^"%s^" ^"%s^" ^"%s^" ^"%s^" %f %i %f %f %f %i ^"%s^"^n", ...);
Is there a limit on the data length that can be put with this native?
If so, does fputs() have the same length limit?
If not, will it be okay if I did 2 fprintf() calls to fit it all?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-18-2009 , 19:02   Re: fprintf() having a limit on string size?
Reply With Quote #2

I would suggest just separating it into several fprintf
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-19-2009 , 01:07   Re: fprintf() having a limit on string size?
Reply With Quote #3

if it wont work it probably has a limit or amxx itself limits it just like other vars have limits too. but tbh, thats a huge line you want to write to the file :O
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Reply


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 01:31.


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