Replacement for format function
#1

Solved. Thanks for helping everyone!
Reply
#2

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?
Reply
#3

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
Nope.

Source?
Self Experiment.
Reply
#4

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
Reply
#5

Quote:
Originally Posted by Jewell
Посмотреть сообщение
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
What about if it's an integer or a float? Thanks for your help though.
Reply
#6

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.
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)