Raised This Month: $52 Target: $400
 13% 

Showing results 1 to 25 of 500
Search took 0.17 seconds.
Search: Posts Made By: BAILOPAN
Forum: Snippets and Tutorials 04-03-2019, 16:54
Replies: 8
Views: 785
Posted By BAILOPAN
Re: [ANY] New way to store data into the char array

Yeah... can't believe I even need to say it, but don't do this. All pain and no gain.
Forum: Scripting 03-10-2019, 19:19
Replies: 29
Views: 5,903
Posted By BAILOPAN
Forum: Scripting 02-18-2019, 16:02
Replies: 29
Views: 5,903
Posted By BAILOPAN
Re: Enum Structs Available This Holiday Season

I've made a very slight change to the enum struct syntax. The final closing brace (}) must now be followed by a newline. Semicolons are not allowed even with #pragma semicolon, to be consistent with...
Forum: Scripting 02-18-2019, 16:00
Replies: 29
Views: 5,903
Posted By BAILOPAN
Re: Enum Structs Available This Holiday Season

Enum structs are the near-term workaround for lack of instance-variables in methodmaps.
Forum: Scripting 12-17-2018, 01:50
Replies: 29
Views: 5,903
Posted By BAILOPAN
Enum Structs Available This Holiday Season

Hi Folks,

As of PR #934 (https://github.com/alliedmodders/sourcemod/pull/934), SourceMod 1.10 has support for enum structs. This is some long-overdue syntactic sugar that makes SourcePawn feel...
Forum: General 11-07-2017, 18:22
Replies: 11
Views: 1,615
Posted By BAILOPAN
Re: Script execution timed out

How big is the map list?
Forum: Scripting 09-26-2017, 23:10
Replies: 0
Views: 2,703
Posted By BAILOPAN
Intent to remove: funcenum, functag

Hi, all. It has been 3.5 long years since we introduced the Transitional Syntax, and there is some very obsolete syntax I would like to remove: funcenum and functag.

These have been replaced by...
Forum: Coding MM:S Plugins & SM Extensions 07-16-2017, 00:21
Replies: 3
Views: 890
Posted By BAILOPAN
Re: How to copy ke::HashMap?

If you file some issues I can make sure the move-ctor bug is fixed, as well as the const iterator.

I've been thinking about lifting the copy-constructor restriction in AMTL. It'd require an opt-in...
Forum: Scripting 05-03-2017, 22:11
Replies: 7
Views: 888
Posted By BAILOPAN
Re: Regex Argument Type Mismatch

Chaosxk is correct - sorry, the error message was totally unhelpful there. Will be fixed: https://github.com/alliedmodders/sourcepawn/pull/111
Forum: General 05-03-2017, 00:57
Replies: 4
Views: 677
Posted By BAILOPAN
Re: Sourcemod Info Help

The file format is documented in smx-headers.h, smx-v1-opcodes.h, and smx-v1.h here: https://github.com/alliedmodders/sourcepawn/tree/master/include/smx

There's a reference implementation of the...
Forum: Off-Topic 03-16-2017, 13:58
Replies: 1
Views: 472
Posted By BAILOPAN
Re: Happy Bday Bail !

Why, thank you!
Forum: Scripting 01-01-2017, 19:11
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

Not yet, but it wouldn't be that hard I think. Want to file a bug? In the meantime, you can use static methods to return a constant.
Forum: Scripting 12-19-2016, 11:23
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

Functions are not first-class.
Forum: Scripting 11-21-2016, 23:21
Replies: 17
Views: 1,737
Posted By BAILOPAN
Re: Regarding certain statements and such.

The canonical list of reserved words is here: https://github.com/alliedmodders/sourcepawn/blob/master/compiler/sc2.cpp#L1858

Not all of them have actual semantics though. Some are just reserved.
Forum: Scripting 09-26-2016, 18:05
Replies: 7
Views: 698
Posted By BAILOPAN
Re: Copying 2D arrays by natives

This may break horribly in future versions of SP, so I wouldn't recommend doing it. If you want an API for 2D arrays just request one! It shouldn't be hard.
Forum: Scripting 09-09-2016, 15:40
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

Maybe they will add your classification as a foreword to the next spec.
Forum: Scripting 09-02-2016, 15:54
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

"any" should not be a valid input to "view_as".
Forum: Scripting 08-24-2016, 16:20
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

Emp's solution is good.
Forum: Scripting 08-22-2016, 16:40
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

Are you asking for a way to set a methodmap to 0 without view_as? That should be easy, but it'd help to see a minimal example of what you're trying to do.
Forum: General 07-19-2016, 21:37
Replies: 3
Views: 474
Posted By BAILOPAN
Re: If making SM was a paid job...

The person who wrote SourceHook, btw, is PM (https://forums.alliedmods.net/member.php?u=4). He was a student when he wrote it - I think gymnasium but I might be mistaken.
Forum: Scripting 05-25-2016, 16:34
Replies: 3
Views: 635
Posted By BAILOPAN
Re: Get amount of rows in enum

Using a "Count" or "Total" value at the end is preferred, FWIW.
Forum: Scripting 04-23-2016, 17:11
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

They are still limited to 0.1s (100ms) for practicality. A bunch of games process new frames every ~30ms, which means our timers could be pretty inaccurate if we went below that. For example if you...
Forum: Scripting 04-22-2016, 17:02
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

Yes, you can do this. I don't really understand your efficiency question, but since methodmaps don't allocate memory it shouldn't matter. There are a few antipatterns in your code though. In general...
Forum: Scripting 03-25-2016, 14:42
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

That doesn't really change how it would be implemented. The best we could do is some kind of hook in the typename parser that has a table of alternate tokens to return. That might be an option,...
Forum: Scripting 03-21-2016, 23:21
Replies: 931
Views: 170,975
Posted By BAILOPAN
Re: New API and Syntax

The compiler, internally, has no concept of a "type" aside from hacks like methodmaps that we've surgically bolted on. It's easy to map names ("float" -> "vec_t" for example), but mapping to an...
Showing results 1 to 25 of 500

 
Forum Jump

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


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