SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: Nero_3D
Forum: Discussion 21/07/2016, 08:10 PM
Replies: 709
Views: 165,980
Posted By Nero_3D
Re: Today I learned - Share your newly found knowledge!

It isn't something new but I think it related that the arrays are stored behind each other
I used it to concat long string together without using additional memory
...
Forum: Discussion 23/02/2016, 11:49 PM
Replies: 709
Views: 165,980
Posted By Nero_3D
Re: Today I learned - Share your newly found knowledge!

Today I learned that a pointer can be realized by doing
new pointer[][] = {{}};
The funny thing is that pawn accepts empty arrays
And if you declare an array without value or with arrays with...
Forum: Discussion 12/02/2016, 11:55 AM
Replies: 709
Views: 165,980
Posted By Nero_3D
Re: Today I learned - Share your newly found knowledge!

It doesn't matter how long your string is because there is a possibility that the exact same string is generated
To create an unique key you would need to save all existing keys and check if the new...
Forum: Discussion 02/10/2012, 07:19 PM
Replies: 709
Views: 165,980
Posted By Nero_3D
AW: Today I learned - Share your newly found knowledge!

Okay something new, an easy way to increase a constant variable, without a long list of macros

#if defined COUNT
const
COUNT_INC = COUNT + 1
;
#undef COUNT

const
...
Forum: Discussion 22/07/2012, 02:09 AM
Replies: 709
Views: 165,980
Posted By Nero_3D
AW: Re: Today I learned - Share your newly found knowledge!

Only if you use the default increment (+= 1)

Today I learned that NOP's are slower than no code :p
Showing results 1 to 5 of 5

 

All times are GMT. The time now is 04:16 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.