SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 118
Search took 0.00 seconds.
Search: Posts Made By: Markski
Forum: Scripting Help 05/03/2020, 11:28 PM
Replies: 4
Views: 110
Posted By Markski
Forum: Includes 11/02/2020, 10:11 PM
Replies: 7
Views: 1,319
Posted By Markski
Re: 3D Speedometer v0.2

y_hooks is optional, hence the compiler checks on _INC_y_hooks, so having that array there is necesary one way or the other.

Also, 0.3:

- Added Spanish option
- Added option to disable vehicle...
Forum: Includes 10/02/2020, 06:23 PM
Replies: 7
Views: 1,319
Posted By Markski
3D Speedometer v0.3

An easy-to-implement 3D Speedometer.

- Include with y_hooks and it will work inmediatly.
- If you don't have y_hooks then making it work is as simple as pasting a few lines of code in 4...
Forum: Scripting Help 03/02/2020, 03:24 AM
Replies: 3
Views: 128
Posted By Markski
Re: Shorten this

What's wrong with that? IMO it's the best approach for this solution.

To answer your question though, there's this:

stock bool:FALSE = false;
new scmExStr[144];
#define...
Forum: Scripting Help 02/02/2020, 02:12 PM
Replies: 5
Views: 182
Posted By Markski
Re: Server optimization

Memory sizes are meaningless for speed, lowering memory usage won't improve anything since no script will ever use more than 300mb of ram anyways.

What should concern you is performance profilings...
Forum: Scripting Help 31/01/2020, 12:41 PM
Replies: 5
Views: 253
Posted By Markski
Re: easyDialog.inc exceed heap size

If you mean the amount of heap that your script will use in the worst case scenario, the compiler says it here:



Again, this is calculated based on how much function calling depth your script...
Forum: Scripting Help 30/01/2020, 09:07 PM
Replies: 5
Views: 253
Posted By Markski
Re: easyDialog.inc exceed heap size

Heap/stack size max. usage estimations are based, mostly, on how much depth of function calls your script might fall into. Provided there is no recursion, in which case it'd theoretically be...
Forum: Server Support 30/01/2020, 01:49 AM
Replies: 1
Views: 191
Posted By Markski
Re: runtime error with streamer and sscanf

Seems the sscanf plugin requires the universal C runtime, which you can find clicking here (https://support.microsoft.com/es-es/help/2999226/update-for-universal-c-runtime-in-windows)
Forum: Scripting Help 28/01/2020, 09:59 PM
Replies: 4
Views: 199
Posted By Markski
Re: what is #pragma compress 0

Certain scripts might not compile properly with compact encoding enabled. I reckon perhaps scripts which handle strings in one way or another, but not sure.

If your script compiles correctly,...
Forum: Scripting Help 28/01/2020, 01:47 AM
Replies: 4
Views: 199
Posted By Markski
Re: what is #pragma compress 0

The "#pragma compress" directive toggles wether or not the compiler's generated bytecode will be in either compact or plain encoding. If the value is anything but zero, compact encoding is used,...
Forum: Scripting Help 26/01/2020, 09:32 PM
Replies: 2
Views: 72
Posted By Markski
Re: attach PlayAudioStream to a player?

The solution above is good, but to do it yourself, basically:

- Keep constant track of the position of the players who have ongoing streams.
- Have a player variable ("Listening") for everyone...
Forum: Scripting Help 25/01/2020, 02:07 PM
Replies: 3
Views: 123
Posted By Markski
Re: Can't press enter to enter in a building

For future reference, keep in mind using "&" instead of "==" is ideal for key state. This is because & functions as a bit-wise "and", meaning it'll check for that key being pressed instead of...
Forum: Scripting Help 24/01/2020, 10:36 PM
Replies: 5
Views: 234
Posted By Markski
Re: #emit

This is a very creative approach, I wouldn't have thought of using a macro for this. +rep
Forum: Scripting Help 24/01/2020, 08:52 PM
Replies: 5
Views: 234
Posted By Markski
Re: #emit

#emit is a way to write in-line P-Code/Bytecode (Pawn's compiled "Assembly" so to speak).

This is often done to either bypass limitations of the language, obsfucate code, increase execution speed...
Forum: Scripting Help 24/01/2020, 08:45 PM
Replies: 5
Views: 191
Posted By Markski
Re: How unique is IP?

This cannot be done with a plugin let alone an include, not without requiring players to install a mod for the server (which in my book is often a big no-no as a user). Furthermore I reckon...
Forum: Server Support 24/01/2020, 08:42 PM
Replies: 2
Views: 426
Posted By Markski
Re: Configuring Nginx to reverse-proxy SA-MP server

This one I used previously for HTTP requests, not sure if it'd work for SA-MP but might be worth a try, tweaked it a bit for your case...

server {
listen 7777;
server_name s2.name.com;
...
Forum: Scripting Help 24/01/2020, 02:29 PM
Replies: 5
Views: 191
Posted By Markski
Re: How unique is IP?

For the null amount of tools which SA-MP provides, this is a little too optimistic. But I'll let you find this out by yourself as you keep trying and researching.

As for the question, Long answer:...
Forum: Scripting Help 23/01/2020, 10:32 PM
Replies: 2
Views: 128
Posted By Markski
Re: Count strings in a file

How're you separating strings? If you're separating them one on each line, maybe you can just count the lines

new string[64], count = 0;
new File:file = fopen("houses.txt", io_read);...
Forum: Scripting Help 23/01/2020, 12:06 PM
Replies: 2
Views: 104
Posted By Markski
Re: Mapfiles not loading from scriptfiles

How about you show us the script you made to load the mapfiles from ini files?
Forum: Server Support 04/12/2019, 04:39 PM
Replies: 8
Views: 707
Posted By Markski
Re: ┐How to set my ip to samp.hostname.com:7777?

Assuming that you already bought your domain, the webpanel for the domain provider you bought from should provide you with the tools required to point a subdomain to your IP address.

Here's an...
Forum: Client Support 04/12/2019, 04:14 PM
Replies: 1
Views: 432
Posted By Markski
Re: Client stuck at 60fps (forced vsync)

Update bump, attempted disabling fullscreen optimization from compatiblity options, didn't help either
Forum: Client Support 04/12/2019, 12:06 AM
Replies: 1
Views: 432
Posted By Markski
Client stuck at 60fps (forced vsync)

Title is self explanatory. Something is forcing my SA-MP to run at 60fps instead of the 100fps limit. I have no idea what's causing it.

I'm sure it HAS to be something forcing vsync and not just a...
Forum: Includes 02/12/2019, 02:13 PM
Replies: 4
[Include] Surfing callbacks
Views: 811
Posted By Markski
Re: Surfing callbacks

It is a shallow release indeed because I made it to solve a problem and only one problem that I was facing. But I'll add support for objects soon, since I didn't think of that.
Forum: Includes 30/11/2019, 07:13 PM
Replies: 4
[Include] Surfing callbacks
Views: 811
Posted By Markski
Surfing callbacks

SA-MP Surf Callbacks

Nothing too special to it, simply adds 3 callbacks which are triggered when:

- A player begins surfing a vehicle.
- A player stops surfing a vehicle.
- A player hops from...
Forum: Scripting Help 30/11/2019, 07:00 PM
Replies: 7
Views: 229
Posted By Markski
Re: Shadowing Variable at preceeding level

Ideally they should be enclosed, yes, it is possible that this is a bug with the old compiler (provided you're not using the community one). It seems to believe those cases are preceding levels of...
Showing results 1 to 25 of 118

 

All times are GMT. The time now is 06:10 PM.


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