Kristo Isberg

Results 10 comments of Kristo Isberg

I think something like this should be added and Composer's suggested packages could be a good example to follow here. Composer.json: ```json "suggest": { "psr/log": "For optional PSR-3 debug logging",...

That's also how Composer's suggested packages work. If they are available, they are used, otherwise they obviously aren't. ```php private static function detectDefaultClient() { if (extension_loaded('curl')) { return new FacebookCurlHttpClient();...

The second option is exactly what I suggested, there's no need to make this any more complicated than that.

Yeah, that was my quick estimation on what are the most common settings and what would be the most beneficial to developers. I've seen indentation using spaces around more (and...

I disagree with that. SA-MP is just an user of PAWN, so are open.mp, SourceMod and an Estonian satellite, for example. The SA-MP standard library will be barely relevant for...

> Using spaces instead would also negate years of trying to explain the use of `tabsize 4`. Why even bother if we aren't using tabs? The main reason is Pawno....

> > > Also, I just checked, github uses `.editorconfig` as well, so setting: > > ``` > indent_style = tab > indent_size = 4 > ``` > > Will...

Update: The current syntax doesn't even seem to work properly... ```pawn static Iterator:Light:Lights; ``` ``` C:\Users\Kristo Isberg\Documents\actually-good-lights\actually-good-lights.inc:38 (error) symbol already defined: "Lights" C:\Users\Kristo Isberg\Documents\actually-good-lights\actually-good-lights.inc:44 (error) undefined symbol "Iterator@Lights" C:\Users\Kristo Isberg\Documents\actually-good-lights\actually-good-lights.inc:44...

Both indeed. Preprocessor output (5.x): ```pawn forward @yH_OnPlayerConnect @003(playerid);@yH_OnPlayerConnect @003(playerid) ```

I have a semi-working code for this at home. Should there be anyone (@JustMichael) interested in finishing it, I can put it back on GitHub since I _currently_ don't have...