SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: NaS
Forum: Filterscripts 26/03/2019, 03:22 AM
Replies: 20
Views: 1,425
Posted By NaS
Re: Player Location Display [v1.0]

You need to check if the extra id you retrieve in OnPlayerEnter/LeaveDynamicArea is actually within the bounds of the array, and additionally if the Area ID is the same as the zone's.

Otherwise...
Forum: Scripting Help 24/03/2019, 04:04 PM
Replies: 2
Views: 52
Posted By NaS
Re: string formating question

It's used to attach something to a string while also using other specifiers.

For example, if you have a list you want to show in a dialog and you want to format each line with values/text from an...
Forum: Screenshots and Videos 24/03/2019, 03:38 PM
Replies: 8
Views: 294
Posted By NaS
Re: Predator Missile in SAMP

https://github.com/Naseband/SAMP-MissileStuff

It doesn't include the guided missiles yet because it's impossible to kill vehicles with it but I might just use dynamic areas (since they are...
Forum: Scripting Help 24/03/2019, 01:49 PM
Replies: 11
Views: 170
Posted By NaS
Re: Duplicate case label

You might have placed the same dialog id twice.
Which exact line is the error line? Search for that one to find it.
Forum: Screenshots and Videos 24/03/2019, 01:13 PM
Replies: 8
Views: 294
Posted By NaS
Re: Predator Missile in SAMP

Nice!

I made one too some time ago with some other kind of missiles as well, like homing or swarm. But your view is better (I used the missile to attach the camera directly, so it's not visible)....
Forum: Scripting Help 23/03/2019, 05:23 PM
Replies: 12
Views: 463
Posted By NaS
Re: Garage not created

For the "manual" insert, you use %e in format which isn't a valid specifier. I don't think this will cause it to fail though as it will just pass "e" instead of the string, however it will mess up...
Forum: Scripting Help 23/03/2019, 04:58 PM
Replies: 3
Views: 47
Posted By NaS
Re: Custom function

You return SendUsageMessage's value but it doesn't return anything specific.
Forum: Scripting Help 22/03/2019, 05:29 PM
Replies: 13
Views: 223
Posted By NaS
Re: OnPlayerSwitchWeapon?

You could do that too but calling one native and doing int comparisons is literally what you do to check the weapon. So if you do that, you could just put the code into OnPlayerUpdate in the first...
Forum: Scripting Help 22/03/2019, 05:04 PM
Replies: 13
Views: 223
Posted By NaS
Re: OnPlayerSwitchWeapon?

The weapon switch keys are not synced, neither OnPlayerKeyStateChange nor GetPlayerKeys will detect them. So this isn't even possible. Also there are multiple ways to switch a weapon so additional...
Forum: Filterscripts 22/03/2019, 01:33 AM
Replies: 198
Views: 46,097
Posted By NaS
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Since you use 0.3DL you need to use the FCNPC-DL version, it even tells you that :P
It's in the release archive from GitHub as well, copy it to your plugins folder like the non-DL version and add it...
Forum: Filterscripts 21/03/2019, 11:22 PM
Replies: 198
Views: 46,097
Posted By NaS
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Which version of FCNPC are you using? I adopted to 2.0.0 (the latest rc I believe) recently so make sure you are using the same version.
Also is there anything in the logs? Like Plugins that failed...
Forum: Scripting Help 20/03/2019, 07:50 PM
Replies: 7
Views: 2,026
Posted By NaS
Re: Get random string

Those functions do not return anything, but you put them into the format line. That's why the compiler complains.

You should move the functions out of the format call, since they modify the...
Forum: Scripting Help 16/03/2019, 03:22 PM
Replies: 2
Views: 118
Posted By NaS
Re: Listing textual items from folder

You can use a plugin to get a list of the files, then loop through them.

For example https://forum.sa-mp.com/showthread.php?t=653119

There's an example in the thread to show how to loop through...
Forum: Scripting Help 13/03/2019, 04:56 PM
Replies: 4
Views: 144
Posted By NaS
Re: Percentage problem

floatdiv is not neccessary to specifically use, dividing two values/variables when at least one of them has a Float tag will use floatdiv "automatically".
In fact, all float operations in pawn will...
Forum: Scripting Help 13/03/2019, 05:39 AM
Replies: 6
Views: 108
Posted By NaS
Re: [HELP] hold and press a key at the same time

if((newkeys & KEY_HANDBRAKE) && !(oldkeys & KEY_HANDBRAKE) && (newkeys & KEY_ACTION))

This will react only if KEY_HANDBRAKE is pressed but wasn't pressed before and KEY_ACTION is already pressed.
Forum: Scripting Help 12/03/2019, 03:00 PM
Replies: 3
Views: 105
Posted By NaS
Re: Strange problem

It's only possible to hide all of it, not parts of it unfortunately.

Regarding your loop in OnPlayerUpdate, it shouldn't be neccessary to call it that often (or at all). You can turn off all...
Forum: Scripting Help 11/03/2019, 05:23 PM
Replies: 7
Views: 178
Posted By NaS
Re: Issue with custom damage system (pistolwhipping)

In case the health/armor "overhead" is still an issue, you first subtract the damage from the armor variable, even if it's 0.0.
If the result is negative (< 0.0), there was more damage done than the...
Forum: Scripting Help 11/03/2019, 02:35 PM
Replies: 7
Views: 178
Posted By NaS
Re: Issue with custom damage system (pistolwhipping)

There are a few issues with your health/armor code in general.
If a player has 1.0 armor, a shot would only do one damage.
You need to calculate the overhead if a player has less armor than the...
Forum: Scripting Help 08/03/2019, 07:16 PM
Replies: 7
Views: 153
Posted By NaS
Re: these crash my compiler

Try to use the community compiler in case you don't already. Many crashes have been fixed in that one, so it's worth trying. Might be that it shows you errors instead of just crashing.
Forum: Scripting Help 06/03/2019, 05:38 PM
Replies: 8
Views: 204
Posted By NaS
Re: <<= 1 Mean

It's a bit shift.

If you have a binary number, eg 0b0101 it will become 0b1010 (all bits are shifted 1 position to the left).

What it does in this case is shift every entries' value 1 to the...
Forum: Scripting Help 05/03/2019, 05:24 PM
Replies: 14
Views: 284
Posted By NaS
Re: /spec doesnt work with virtual world even though it changes

You need to put a little delay between TogglePlayerSpectating and PlayerSpactatePlayer/Vehicle if you just switched virtual worlds.

Regarding the IsBeingSpeced issue, you might want to use a...
Forum: Tools and Files 05/03/2019, 03:58 PM
Replies: 2
Views: 370
Posted By NaS
Re: How to get information inside nodes*.dat files?

Just use the GPS Plugin (either by Gamer_Z or kvann's, which is better) and see the GPS.dat.
It's the original node net including fixes. If you don't want any fixes, use the older GPS.dat which is a...
Forum: Scripting Help 05/03/2019, 12:57 PM
Replies: 2
Views: 65
Posted By NaS
Re: strlen problem

You're checking if the length is longer than 4 AND shorter than 1 character. It can't be both!

You need to check if it's longer than 4 OR shorter than 1.
Forum: Screenshots and Videos 04/03/2019, 01:14 PM
Replies: 24
Views: 2,568
Posted By NaS
Re: (0.3.DL) Minimap for Vice City

You could think about dividing it into 45 parts and showing 9 at once, that lets you view your surroundings better (currently you cannot see anything beyond the border).
Forum: SA-MP 0.3.DL 02/03/2019, 11:53 PM
Replies: 8
Views: 603
Posted By NaS
Re: GTA SA Object Flag Values

Some flags in your list are incorrect or misinterpreted.

4 - Render this object last. Allows other objects with transparity to be visible through it
8 - Additive blending (used for night...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:43 AM.


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