Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 3 of 3
Search took 0.03 seconds.
Search: Posts Made By: MAGNAT2645
Forum: Snippets and Tutorials 08-20-2021, 19:00
Replies: 83
Views: 137,257
Posted By MAGNAT2645
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced

As i said, it's not that useful. You can use it in a macro to join text (and put it without quotes).

#define ERROR(%0) PrintToServer( "ERROR: " ... #%0 )

int a = 5;
int b = 0;
int c;
if ( b...
Forum: Snippets and Tutorials 08-19-2021, 14:17
Replies: 83
Views: 137,257
Posted By MAGNAT2645
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:

// Note that...
Forum: Snippets and Tutorials 02-01-2020, 12:53
Replies: 83
Views: 137,257
Posted By MAGNAT2645
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced

But StringMap doesn't have a method named FindString.
StringMap API (https://www.sourcemod.net/new-api/adt_trie/StringMap)


When input and output buffers aren't the same.


I heard that...
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 14:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode