Question
#7

https://sampforum.blast.hk/showthread.php?tid=55261

Quote:
Originally Posted by ******, the god scripter
By my count there are 47 characters in that string, 2 of which are the "%d" which won't appear in the final string, so 45 to go in the final string. We've already ascertained that the longest the number will be is 4 (if you want to be on the REALLY safe side, the longest a PAWN integer can possibly ever be is 11 characters (-2147483647)), and we know that all strings require a NULL at the end, so the longest this string can ever possibly get to is:

47 - 2 + 4 + 1 = 50

50 cells, so why use 256, it's just a waste of 206 cells (824 bytes - that's nearly a kilobyte of wasted memory)?
No not 64! Just 37!!! - And I didn't read it good. Indeed not 15 :P. But then use 37!!!!
Reply


Messages In This Thread
Question - by Jimbo01 - 21.01.2011, 18:13
Re: Question - by Kwarde - 21.01.2011, 18:15
Re: Question - by Joe Staff - 21.01.2011, 18:16
Re: Question - by MadeMan - 21.01.2011, 18:17
Re: Question - by Joe Staff - 21.01.2011, 18:19
Re: Question - by Sascha - 21.01.2011, 18:20
Re: Question - by Kwarde - 21.01.2011, 18:20
Re: Question - by MadeMan - 21.01.2011, 18:21
Re: Question - by Kwarde - 21.01.2011, 18:22
Re: Question - by Joe Staff - 21.01.2011, 18:23

Forum Jump:


Users browsing this thread: 5 Guest(s)