SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: ThePhenix
Forum: Discussion 03/01/2018, 06:42 PM
Replies: 709
Views: 165,904
Posted By ThePhenix
Re: Today I learned - Share your newly found knowledge!

If you're going to check for ranges you should use "if, elseif, else" instead.
Forum: Discussion 31/10/2015, 11:55 PM
Replies: 709
Views: 165,904
Posted By ThePhenix
Re: Today I learned - Share your newly found knowledge!

Today I learned that you can have concurrent operations using the comma operator.


new i, j;
j = 0;
i = (j++, j+=1, j+=1, j *= 2, j /= 10, j += 15, j * 2);


Which outputs 30 for as the...
Forum: Discussion 20/10/2014, 07:24 PM
Replies: 709
Views: 165,904
Posted By ThePhenix
Re: Today I learned - Share your newly found knowledge!

I learned that pawn supports numbers like this way:

main()
{
new z = 1_000_000;
printf("%d", z);
}

It's easier to read that number, isn't it?
Forum: Discussion 04/08/2014, 04:02 AM
Replies: 709
Views: 165,904
Posted By ThePhenix
Re: Today I learned - Share your newly found knowledge!

So, this morning I was scripting in my gamemode calmly. My gamemode usually takes 5 seconds to compile(10.000 lines).
Suddenly, my GM started to take 2 minutes to compile, I was so dissapointed....
Showing results 1 to 4 of 4

 

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


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