Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Addition for "3. Connect to Server" section.
Recently, they updated something in security, and a method for running client via left4dead2.exe (with arguments) in the same machine with a server is no more working. Instead, here is a walkaround to run the app directly from steam.exe. I'm attaching the full code of .bat script (to run server + join simultaneously):
Spoiler
For other games, change appID 550 by your game's Id from steam.inf file, and GAME_ALIAS value with an appropriate game name alias. |
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
|
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Something like this is useful too
Using this script instead of the random start map plugins
Spoiler
|
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
|
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
On the first page, in section...
...and subheading... Code:
SourcePawn specific editors |
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Done. Thanks.
|
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
strcmp() provides less readable and worse compatibility compared to StrContains()
|
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
You can also mention the "stringize" operator (inherited from Pawn) which converts arguments to packed strings in a macro.
I don't find it that useful but still here's an example: Code:
// Note that spaces inside parentheses count too!!! STRINGIZE( abc123 ) = " abc123 " |
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Quote:
These functions have different meanings. MAGNAT2645, interesting ability, but IMHO, useless sample =) Can't find where it could be useful. The same can be written by manual string enquoting. |
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Quote:
|
| All times are GMT -4. The time now is 22:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.