Posts: 385
Threads: 20
Joined: May 2014
Reputation:
0
Today I learned How to make derby , fallout.
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Just to be clear - '\0'/EOS is exactly the same as 0, and is simply used for being more meaningful in context of strings?
Posts: 60
Threads: 4
Joined: Jul 2007
Reputation:
0
What is the purpose of making this macro? There's still a "stock" declaration before the macro.
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by dominik523
Okay that is really impressive. Where did you learn bit operators (if they are called like that, I'm not quite sure) ?
|
They are everywhere. The tilde is a bitwise complement (aka NOT). You can learn about them in like all C* languages (and other languages, just using C as an example).
http://www.cprogramming.com/tutorial...operators.html
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by xVIP3Rx
Today I found out that NetStats_GetConnectedTime() doesn't reset when you use "gmx"
|
Players never actually disconnect when you gmx. The disconnect callback is called so players stats and script stuff is not lost in the process because gmx is not actually a restart command. Gmx is "gamemode exit," it exits the current gamemode and advances to the next in the list of gamemodes in your server.cfg file. If you only have gamemode 0, then it will exit and init the one gamemode you have. This is why all players are actually connected in OnGameModeInit, thus you can detect gmx and prevent RemoveBuildingForPlayer crashes.
Posts: 255
Threads: 23
Joined: Dec 2014
Reputation:
0
If u use \ in the last of a line starting with // ,u will get errors as shit,lol it took alone time to find this shitty erros xD
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Yashas
It is because \ is used to tell that compiler that the line hasn't ended yet.
Код:
#define TEST "ABCDEFG \
HIJKLMN \
OPQRSTUVWXYZ"
And the error which you get when you do that on a comment line is a bug!
|
Actually I think I recall (Y-Less) someone saying that Pawn was supposed to have comment continuation, I recently tested it and it doesn't work.