SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 349
Search took 0.01 seconds.
Search: Posts Made By: kristo
Forum: Includes 11/04/2019, 03:52 PM
Replies: 10
Views: 2,421
Posted By kristo
Forum: Includes 10/04/2019, 12:56 PM
Replies: 8
Views: 1,221
Posted By kristo
Re: multi-weapon2.inc - Multi-weapon switch system with a lot of features

That doesn't sound like a good solution at all, the configuration should be able to be changed from the code, but using functions rather than constants, this way users can decide whether and how they...
Forum: Includes 22/03/2019, 11:29 PM
Replies: 9
Views: 1,218
Posted By kristo
Re: Little Unneeded Functions

VectorSize takes the root of the distance so radius shouldn't be multiplied.
Forum: Server Support 10/03/2019, 08:52 PM
Replies: 15
Views: 1,712
Posted By kristo
Re: All players get disconnected

Don't use CentOS at all unless you have suicide hotline on speed dial.
Forum: Server Support 10/03/2019, 06:44 PM
Replies: 15
Views: 1,712
Posted By kristo
Re: All players get disconnected

I can confirm that what Prolong said is true. Ubuntu 14.04 was fine for me, 16.04 had this issue. Debian 8 is also fine whereas Debian 9 isn't. My host figured out that it is a kernel issue related...
Forum: Scripting Help 28/02/2019, 07:44 PM
Replies: 6
Views: 252
Posted By kristo
Re: [PHP] Add all previous numbers in a for loop

The output you get is correct, it does the thing you described... Your "desired" output is the value of $i until 3 and from then on it's 3 ^ ($i - 2).
Forum: Includes 24/02/2019, 11:05 PM
Replies: 25
Views: 4,334
Posted By kristo
Re: TextDraw Streamer* - No more textdraw limits!

Updated, NaS implemented extra IDs.


TextDrawSetExtraID(Text:text, extra1, extra2 = INVALID_TEXTDRAW_EXTRA_ID);
TextDrawGetExtraID(Text:text, &extra1, &extra2 = INVALID_TEXTDRAW_EXTRA_ID);
...
Forum: Includes 24/02/2019, 03:25 PM
Replies: 25
Views: 4,334
Posted By kristo
Re: TextDraw Streamer* - No more textdraw limits!

All suggestions are welcome, although I won't be updating it too soon since I'm still quite busy with school, I haven't even finished updating the GPS plugin yet. This has been on my GitHub for 2-3...
Forum: Includes 24/02/2019, 03:08 PM
Replies: 25
Views: 4,334
Posted By kristo
Re: TextDraw Streamer* - No more textdraw limits!

I needed it (well, for per-player textdraws, but it felt incomplete without the global ones), which is why I created it. From what I've heard, RC-RP is also close to the limit as TommyB experimented...
Forum: Includes 24/02/2019, 02:39 PM
Replies: 25
Views: 4,334
Posted By kristo
TextDraw Streamer* - No more textdraw limits!

https://www.**************/showthread.php?tid=75
Forum: Scripting Help 18/02/2019, 03:12 PM
Replies: 9
Views: 1,315
Posted By kristo
Re: ShowPlayerDialog - literal array/string passed to a non-const parameter

3.10.9 fixes an issue (https://github.com/pawn-lang/compiler/issues/276) with the compiler where array literals could be modified, which is a thing that should definitely not be able to be done. The...
Forum: Scripting Help 17/02/2019, 02:43 PM
Replies: 7
Views: 491
Posted By kristo
Re: how many hooks?

https://i.imgur.com/NRljd6K.png

These two lines alone show that you didn't even bother testing your code. If you did, you would've realised that you're wrong.
Forum: Scripting Help 17/02/2019, 01:17 PM
Replies: 7
Views: 491
Posted By kristo
Re: how many hooks?

That's not true. The main file rarely needs y_hooks, however each include/module that uses hooks should include either y_hooks or y_unique as the last include (preferrably y_hooks so you don't have...
Forum: Plugin Development 16/02/2019, 01:18 PM
Replies: 124
Views: 77,735
Posted By kristo
Re: Regular expression

To everyone having issues, I suggest you to use a plugin that hasn't been without updates for almost a decade: https://forum.sa-mp.com/showthread.php?t=609570
Forum: Scripting Help 09/02/2019, 07:15 PM
Replies: 28
Views: 945
Posted By kristo
Re: Switch

The code is completely fine (although it is dumb, I hope it was just an example). Try with different object IDs and different coordinates, I just checked all of the IDs on this site...
Forum: Scripting Help 09/02/2019, 07:06 PM
Replies: 28
Views: 945
Posted By kristo
Re: Switch

yes4char
Forum: Scripting Help 09/02/2019, 01:17 PM
Replies: 7
Views: 1,919
Posted By kristo
Re: Best way to make log system?

That's a very cool idea, I've never thought of this approach to chat logs. My logger was supposed to be as flexible as possible, that's why it stores the data in such way. Yours however has a very...
Forum: Scripting Help 08/02/2019, 08:32 PM
Replies: 7
Views: 1,919
Posted By kristo
Re: Best way to make log system?

If you are planning to create a log viewing interface for your admins on your website or somewhere else, a database is 100% the way to go. I recently built a general purpose logging service...
Forum: Screenshots and Videos 04/02/2019, 05:29 PM
Replies: 14
Views: 2,904
Posted By kristo
Re: Animated deer

put it to sleep
Forum: Includes 29/01/2019, 05:39 PM
Replies: 5
Views: 1,910
Posted By kristo
Re: PAWN Colour Manipulation

I present to you, a non-clusterfuck version of ProxDetector using this library:


stock SendFadingMessage(playerid, Float:range, start_colour, end_colour, const message[]) {
if...
Forum: Scripting Help 28/01/2019, 03:41 PM
Replies: 1
Views: 190
Posted By kristo
Re: Gamemode doesn't compile using new streamer

I presume that you're using the default compiler provided in the server package. Use the community compiler (https://github.com/pawn-lang/compiler/releases) that fixes almost all known causes of...
Forum: Everything and Nothing 31/12/2018, 05:01 PM
Replies: 24
Views: 3,926
Posted By kristo
Re: A* Pathfinder (3D map) in samp

If pulled off well, this plugin could be way better than mine. Mine uses node data dumped out of the game while this uses a large amount of raycasts to generate paths from scratch. I'm not sure about...
Forum: Scripting Help 18/11/2018, 10:14 PM
Replies: 4
Views: 245
Posted By kristo
Re: Is there any documentation of pawncc.exe?

https://github.com/pawn-lang/compiler/wiki/Options

Some of the arguments aren't supported by the default compiler if you're using that (you shouldn't be, it hasn't been updated in nearly 10 years...
Forum: Includes 15/11/2018, 06:43 PM
Replies: 8
Views: 2,530
Posted By kristo
Re: variadic.inc - Variadic functions in PAWN

I haven't taken a look at this include in months since my stance on YSI has changed drastically ever since ****** joined SA-MP Discord. I would definitely recommend you to use y_va, but this this...
Forum: Scripting Help 15/11/2018, 04:11 PM
Replies: 8
Views: 308
Posted By kristo
Re: Crashdetector.

Sure. I chose SaveHouses as an example since the code there is the most straightforward, but the idea remains the same everywhere, you just have to check if the handle isn't zero after using fopen.
...
Showing results 1 to 25 of 349

 

All times are GMT. The time now is 02:51 PM.


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