SA-MP Forums Archive
format() function help. - 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: format() function help. (/showthread.php?tid=579362)



format() function help. - Adi007 - 26.06.2015

Hello.
format(teststring,sizeof(teststring),"")

This function clears the "teststring" before formatting it?


AW: format() function help. - Nero_3D - 26.06.2015

That would work but would be a waste
Use teststring[0] = 0; or = EOS; // end of string


Re: format() function help. - Adi007 - 26.06.2015

I asked something...answer to my question. format(), will clear the string "teststring" before formatting it, or will add text like at strcat();?


Re: format() function help. - andrew01000 - 26.06.2015

will clear the string


Re: format() function help. - Larceny - 26.06.2015

You could've tested it by yourself and saved a lot of time.