SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Y_Less
Forum: Everything and Nothing 18/01/2018, 03:34 PM
Replies: 11
Views: 1,083
Posted By Y_Less
Re: Loaded AMX viewer

1) I agree with Southclaws, some sort of generic library.

2) Don't update. It is hard to fix code issues on a different VM. I'd say don't even fix VM bugs. If the SA:MP server has a bug, leave...
Forum: Scripting Help 16/01/2018, 12:27 AM
Replies: 13
Views: 361
Posted By Y_Less
Re: >>> Help me learn PAWN <<<

I just read this as:



If you want to code well. Get used to reading. I learned by reading that documentation several times, and to this day people still wonder why I seem to know more than...
Forum: Everything and Nothing 09/01/2018, 01:11 PM
Replies: 11
Views: 1,083
Posted By Y_Less
Re: Loaded AMX viewer

As I said, I'd really suggest starting from the crashdetect plugin. While I know there is a feature for breaking on BREAK (that is why it exists after all), it doesn't quite give the level of...
Forum: Everything and Nothing 08/01/2018, 02:11 PM
Replies: 11
Views: 1,083
Posted By Y_Less
Re: Loaded AMX viewer

This is quite freaky timing. I've been thinking of something similar for a while, but hadn't actually mentioned it to anyone until yesterday when I was talking on Discord with Amagida. What I was...
Forum: Discussion 06/01/2018, 04:34 PM
Replies: 738
Views: 129,893
Posted By Y_Less
Re: Today I learned - Share your newly found knowledge!

For a moment I got very excited by the prospects of this, but then after some playing I realised that it is not as useful as it might at first seem for one simple reason - it is included before...
Forum: Scripting Help 05/01/2018, 07:08 PM
Replies: 6
Views: 185
Posted By Y_Less
Re: iterators

Iter_Remove(x[0], playerid),
Iter_Remove(x[1], playerid),
Iter_Remove(x[2], playerid),
Iter_Remove(x[3], playerid),
Iter_Remove(x[4], playerid);


That is one expression. You could put them...
Forum: Discussion 04/01/2018, 12:17 AM
Replies: 738
Views: 129,893
Posted By Y_Less
Re: Today I learned - Share your newly found knowledge!

"case 0 .. 5:" is just shorthand for "case 0, 1, 2, 3, 4, 5:". So you are creating a switch statement with 200000 cases in, not just 3. That is why it is slow (not the only problem with your code...
Forum: Plugin Development 30/12/2017, 10:00 AM
Replies: 5
Views: 961
Posted By Y_Less
Re: Non-recursive QuickSort implementation for PAWN

1) Why is "non-recursive" a selling point? This is the sort of technique used for highly constrained systems like embeddd systems with 32kb of RAM, not a PC. Limiting yourself in this way for no...
Forum: Discussion 29/12/2017, 05:00 PM
Replies: 21
Views: 4,366
Posted By Y_Less
Re: #emit Discussion

There are some functions in amx_assembly for that. They aren't perfect, since it is not possible to always get a function's name, but if it is a public then there's no problem.


new dest[32];...
Forum: Includes 27/12/2017, 08:28 PM
Replies: 146
[Include] YSI 4
Views: 46,896
Posted By Y_Less
Re: YSI 4

Yes: https://github.com/Misiur/YSI-Includes/commits/Branch_JIT
Forum: Plugin Development 21/12/2017, 12:55 PM
Replies: 6
Views: 775
Posted By Y_Less
Re: More control over plugin native errors (PoC)

My point was that even if the plugin is loaded those functions might return the same value, depending on previous calls to SetGravity. Your code just hopes it isn't likely.
Forum: Plugin Development 21/12/2017, 10:56 AM
Replies: 6
Views: 775
Posted By Y_Less
Re: More control over plugin native errors (PoC)

What is the performance impact of this? The point of using natives is that they can be very fast, since they are written in a native language, with run-time optimisation to replace each native call...
Forum: Discussion 16/12/2017, 01:18 PM
Replies: 12
Views: 906
Posted By Y_Less
Re: How do you name MySQL threaded queries?

OK, a clarification. When you call "Callback_Get" (which is called within the mysql_inline_query function (or whatever it is called - you know what I mean)), it stores the address of the function...
Forum: Everything and Nothing 14/12/2017, 03:53 PM
Replies: 11
Views: 599
Posted By Y_Less
Re: Has anyone here not played Portal 2 co-op, and wants to?

Steam IDs?



Added.



Unfortunately I need someone who never started it, sorry.
Forum: Everything and Nothing 14/12/2017, 01:36 PM
Replies: 11
Views: 599
Posted By Y_Less
Has anyone here not played Portal 2 co-op, and wants to?

There's an achievement for completing calibration course with someone who hasn't played co-op before, but amost my entire friends list has already (since it is a quite old game now; and since I can't...
Forum: Discussion 12/12/2017, 10:03 AM
Replies: 4
Views: 298
Posted By Y_Less
Re: Max Limit Looping every 1 Second ?

Why are you not using multiple timers with the correct times, instead of one monolithic piece of code that checks for elapsed times?
Forum: Discussion 11/12/2017, 02:36 PM
Replies: 12
Views: 906
Posted By Y_Less
Re: How do you name MySQL threaded queries?

How do you mean "safer"? Why would you want two copies of a variable?
Forum: Discussion 10/12/2017, 05:03 PM
Replies: 22
Views: 1,570
Posted By Y_Less
Re: Scripting as a team

Well done - you've half created a poor imitation of source control. Everything you just described is what git and other things do but with less steps and more protections (for example git will 99%...
Forum: Everything and Nothing 09/12/2017, 12:39 AM
Replies: 4
Views: 308
Posted By Y_Less
Re: [X-MAS SPECIAL] Free Web-Stats for your community

Does it include fallback for those of us without javascript?
Forum: 0.3.7-DL RC Scripting 07/12/2017, 04:50 PM
Replies: 18
Views: 1,833
Posted By Y_Less
Re: Protection of models

Copied from another topic I just posted this in:

Protecting models cannot work. The only way to deal with stolen work is a robust reporting and blocking system - keep your source models and images...
Forum: 0.3.7-DL RC Scripting 07/12/2017, 04:48 PM
Replies: 18
Views: 1,251
Posted By Y_Less
Re: Credits and copyright.

I thought I already posted this somewhere (though it might have been in a since deleted thread because of the subject matter).

Protecting models cannot work. The only way to deal with stolen work...
Forum: Discussion 06/12/2017, 07:43 PM
Replies: 22
Views: 1,570
Posted By Y_Less
Re: Scripting as a team

No



My point was, if you do everything yourself you will spend all your time re-inventing the wheel and never get anything actually useful done in terms of gameplay and business logic.
Forum: Scripting Help 06/12/2017, 06:29 PM
Replies: 5
Views: 133
Posted By Y_Less
Re: OnPlayerCommandPerformed

Make sure you are using a recent version of YSI - there were some issues with this that were fixed about 2 months ago.
Forum: Discussion 06/12/2017, 06:27 PM
Replies: 22
Views: 1,570
Posted By Y_Less
Re: Scripting as a team

"started by", not "made by".

If you try do everything yourself, then after a year of development you will still be worrying about how to parse files and stream objects, not doing anything useful...
Forum: Scripting Help 06/12/2017, 10:22 AM
Replies: 7
Views: 207
Posted By Y_Less
Re: ┐Recursion?

This is a non-warning added in certain versions of the compiler and not a problem. (Bounded) recursion is a perfectly normal coding technique. It can run forever or crash if you just do:

...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:12 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.