Raised This Month: $134 Target: $400
 33% 

Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: BAILOPAN
Forum: General 11-07-2017, 19:22
Replies: 11
Views: 380
Posted By BAILOPAN
Re: Script execution timed out

How big is the map list?
Forum: Scripting 09-27-2017, 00:10
Replies: 0
Views: 429
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, 01:21
Replies: 3
Views: 505
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, 23:11
Replies: 7
Views: 411
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, 01:57
Replies: 4
Views: 356
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, 14:58
Replies: 1
Views: 259
Posted By BAILOPAN
Re: Happy Bday Bail !

Why, thank you!
Forum: Scripting 01-01-2017, 20:11
Replies: 902
Views: 114,537
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, 12:23
Replies: 902
Views: 114,537
Posted By BAILOPAN
Re: New API and Syntax

Functions are not first-class.
Forum: Scripting 11-22-2016, 00:21
Replies: 17
Views: 958
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, 19:05
Replies: 7
Views: 410
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, 16:40
Replies: 902
Views: 114,537
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, 16:54
Replies: 902
Views: 114,537
Posted By BAILOPAN
Re: New API and Syntax

"any" should not be a valid input to "view_as".
Forum: Scripting 08-24-2016, 17:20
Replies: 902
Views: 114,537
Posted By BAILOPAN
Re: New API and Syntax

Emp's solution is good.
Forum: Scripting 08-22-2016, 17:40
Replies: 902
Views: 114,537
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, 22:37
Replies: 3
Views: 329
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, 17:34
Replies: 3
Views: 407
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, 18:11
Replies: 902
Views: 114,537
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, 18:02
Replies: 902
Views: 114,537
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, 15:42
Replies: 902
Views: 114,537
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-22-2016, 00:21
Replies: 902
Views: 114,537
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...
Forum: Off-Topic 03-16-2016, 15:03
Replies: 26
Views: 1,728
Posted By BAILOPAN
Re: Question About AlliedMods Server

I get it, I get it, you just want to DDoS us. We're one step ahead!
Forum: Scripting 03-07-2016, 18:35
Replies: 2
Views: 247
Posted By BAILOPAN
Re: Methodmap: Default parameters switching with value of "this"

Are you compiling with the latest spcomp? This sounds like a bug, but we fixed a few like this already.
Forum: Plugins 02-18-2016, 23:17
Replies: 17
Views: 3,020
Posted By BAILOPAN
Re: [ANY] Source Fuck (A brainfuck VM)

javalia... I am impressed.
Forum: Scripting 02-10-2016, 15:48
Replies: 902
Views: 114,537
Posted By BAILOPAN
Re: New API and Syntax

It's more complicated than that unfortunately. You'd end up seeing something like "char blah[255]" which is not quite what you want to see. You want "blah[PLATFORM_MAX_PATH]". We have a similar...
Forum: Scripting 01-25-2016, 15:42
Replies: 902
Views: 114,537
Posted By BAILOPAN
Re: New API and Syntax

For all the limitations we have with functions, passing a static function around should be workable. Please file a bug and I'll fix.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 13:24.


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