21.01.2011, 18:20
https://sampforum.blast.hk/showthread.php?tid=55261
No not 64! Just 37!!! - And I didn't read it good. Indeed not 15 :P. But then use 37!!!!
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)? |