Replacement for format function - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Replacement for format function (
/showthread.php?tid=411443)
Replacement for format function[SOLVED] -
Cameryn - 29.01.2013
Solved. Thanks for helping everyone!
Re: Replacement for format function -
ReneG - 29.01.2013
Quote:
Originally Posted by Cameryn
Is there any similar function for format?
|
Nope.
Quote:
Originally Posted by Cameryn
The reason is that it uses too much memory aswell as heap size.
Thanks in advance.
|
Source?
Re: Replacement for format function -
Cameryn - 29.01.2013
Quote:
Originally Posted by VincentDunn
Nope.
Source?
|
Self Experiment.
Re: Replacement for format function -
Jewell - 29.01.2013
Strcat?
https://sampwiki.blast.hk/wiki/Strcat
but sometimes this need a format too. if you want to create a long string this will be usefull
Re: Replacement for format function -
Cameryn - 29.01.2013
Quote:
Originally Posted by Jewell
|
What about if it's an integer or a float? Thanks for your help though.
Re: Replacement for format function -
Cameryn - 30.01.2013
Quote:
Originally Posted by ******
Err, no it doesn't - it's a native! Clearly you are using it wrong and any alternative would just be worse!
|
I use it like everyone does. I don't know what's the problem.
Re: Replacement for format function -
Ayumi - 30.01.2013
Quote:
Originally Posted by Cameryn
I use it like everyone does. I don't know what's the problem.
|
Then maybe post examples of how you're using it and we can take a look?
What ****** said is true. I have never experienced any troubles or difficulties regarding what you have stated.
Re: Replacement for format function -
Cameryn - 30.01.2013
Quote:
Originally Posted by Ayumi
Then maybe post examples of how you're using it and we can take a look?
What ****** said is true. I have never experienced any troubles or difficulties regarding what you have stated.
|
Nvm fixed. Linux machine doesn't like format.
Re: Replacement for format function -
kaisersouse - 30.01.2013
I've used MANY format calls on a linux SAMP server since 2007. I assure you..whatever is going wrong has 0 to do w/ format, linux, etc. I'm thinking the problem is between the chair and the keyboard.
Re: Replacement for format function -
kaisersouse - 30.01.2013
Quote:
Originally Posted by Cameryn
Is there any similar function for format? The reason is that it uses too much memory aswell as heap size. Thanks in advance.
|
YEah...so not every string size needs to be 256 or 512. Just throwing that out there...