AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   fprintf() having a limit on string size? (https://forums.alliedmods.net/showthread.php?t=92720)

Exolent[jNr] 05-18-2009 18:57

fprintf() having a limit on string size?
 
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?

Emp` 05-18-2009 19:02

Re: fprintf() having a limit on string size?
 
I would suggest just separating it into several fprintf

SchlumPF* 05-19-2009 01:07

Re: fprintf() having a limit on string size?
 
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


All times are GMT -4. The time now is 01:31.

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