SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 484
Search took 0.02 seconds.
Search: Posts Made By: Spmn
Forum: Scripting Help 19/09/2020, 02:33 AM
Replies: 16
Views: 303
Posted By Spmn
Re: IssueKick problem

One problem might be that youre using string literals in a ternary operator which is known to cause issues when compiling with the stock compiler. Use an if-else condition instead or better switch to...
Forum: Server Support 15/09/2020, 06:06 PM
Replies: 6
Views: 393
Posted By Spmn
Forum: Scripting Help 04/09/2020, 03:45 PM
Replies: 14
Views: 512
Posted By Spmn
Re: Bool Opposite

Why would anyone even consider this monstrosity, let alone actually using it.
Forum: Scripting Help 04/09/2020, 03:39 PM
Replies: 4
Views: 168
Posted By Spmn
Re: Camera Angle

https://math.stackexchange.com/questions/175896/finding-a-point-along-a-line-a-certain-distance-away-from-another-point
Forum: Scripting Help 31/08/2020, 02:19 PM
Replies: 7
Views: 331
Posted By Spmn
Re: Long callback execution detected (hang or performance issue) and more help

It happens because the initialization takes a long time and crashdetect thinks the script is stuck in an infinite loop. If it really bothers you, disable long_call_time...
Forum: Scripting Help 31/08/2020, 01:58 PM
Replies: 17
Views: 655
Posted By Spmn
Re: Why is PAWN so unstable?

I assume String_ToUpper looks somewhat like this:
String_ToUpper(buf[], buf_size) {
for (new i = 0; i < buf_size; ++i) {
buf[i] = toupper(buf[i]);
}
}
...
Forum: Server Support 10/09/2019, 06:51 PM
Replies: 3
Views: 387
Posted By Spmn
Re: Profiler plugin

The output is generated when you close the server gracefully (CTRL+C) or when you stop the profiler by calling `Profiler_Stop()`
Forum: Plugin Development 16/06/2019, 02:18 PM
Replies: 263
[Plugin] Pawn.RakNet
Views: 123,996
Posted By Spmn
Re: Pawn.RakNet

Why don't you simply call `SetVehicleVelocity`? You should use this plugin to gain new features, not to reimplement existing ones.

Ontopic: `vehicleid` can't be uint8. It is uint16 more likely.
Forum: Plugin Development 13/06/2019, 08:11 PM
Replies: 263
[Plugin] Pawn.RakNet
Views: 123,996
Posted By Spmn
Re: Pawn.RakNet

iVerison is netgame version, which must be the same for every revision, otherwise new clients couldn't connect to servers. For instance, 0.3z-R1, 0.3z-R2 and so on share the same iVersion.
Forum: Scripting Help 14/04/2019, 09:18 PM
Replies: 2
Views: 265
Posted By Spmn
Re: Game lag when trying to preload animations

Use a timer and preload them in batches.
Forum: Scripting Help 01/01/2019, 12:21 PM
Replies: 7
Views: 1,731
Posted By Spmn
Re: Serious Discussion about TIMERS!

Use y_timers' ptask or any plugin that provides per-player timers.
Forum: Server Support 29/12/2018, 04:17 PM
Replies: 9
Views: 943
Posted By Spmn
Re: cheat of vehicles

Monitor OnVehicleMod and OnUnoccupiedVehicleUpdate
Forum: Scripting Help 15/09/2018, 09:52 AM
Replies: 14
Views: 762
Posted By Spmn
Re: Minimizing lines

Or delete the backslashes. They're unnecessary in your case.
Forum: Bug Reports 14/09/2018, 06:48 PM
Replies: 6
Views: 2,182
Posted By Spmn
Re: Vehicle X was not deleted [Trains]

No, they get unused ids, at least on 0.3.7. For instance, this (https://pastebin.com/4Zn6N1n1) script prints:
Model: 400 - ID: 1
Model: 401 - ID: 2
Model: 402 - ID: 3
Model: 403 - ID: 4

Model:...
Forum: Scripting Help 24/08/2018, 06:46 PM
Replies: 4
Views: 388
Posted By Spmn
Re: Error 079!

Move `Locale` definition below, so `ParseFile` is defined before the call. Looks like a compiler bug.

Anyway, returning strings is bad practice. You should use references.
Forum: Scripting Help 21/08/2018, 10:13 PM
Replies: 3
Views: 420
Posted By Spmn
Re: Check if something is included

https://github.com/samp-incognito/samp-streamer-plugin/blob/master/streamer.inc#L20
So check if `_streamer_included` is defined.

Zeex compiler doesn't generate include guards by default, so...
Forum: Everything and Nothing 16/08/2018, 07:46 PM
Replies: 33
Views: 4,870
Posted By Spmn
Re: Cheat folders and files?

As a guy who worked briefly on a clientside anticheat, I'd suggest you NOT to write an AC unless you actually have experience in modding or at least know how cheats and mods work.
First step is to...
Forum: Scripting Help 26/07/2018, 11:35 PM
Replies: 713
Views: 180,126
Posted By Spmn
Forum: General 29/06/2018, 06:48 PM
Replies: 4
Views: 881
Posted By Spmn
Re: QUERY

Not possible* unless the server you play on allows players to increase/decrease the nametags draw distance using a command or any other interface.

*possible = no hax
Forum: Scripting Help 26/06/2018, 12:46 PM
Replies: 31
Views: 1,532
Posted By Spmn
Re: String lenght is too high

However, dialogs can only show 4096 characters at most.
Forum: Includes 18/06/2018, 08:01 PM
Replies: 7
Views: 1,831
Posted By Spmn
Re: SweeperPP | Turn On Sweper Car Brushes!

You should hook DestroyVehicle too.
Forum: Plugin Development 31/05/2018, 03:43 PM
Replies: 263
[Plugin] Pawn.RakNet
Views: 123,996
Posted By Spmn
Re: Pawn.RakNet

Text length can't be uint8. Most likely it's uint16.
Forum: Bug Reports 16/05/2018, 04:53 PM
Replies: 4
Views: 2,356
Posted By Spmn
Re: GetActorPos is not working or updating!

The real bug is that actors aren't properly frozen on clients' screens and therefore they can be pushed away from their original position until they are restreamed or SetActorPos is used.
Forum: Server Support 28/04/2018, 03:15 PM
Replies: 17
Views: 7,774
Posted By Spmn
Re: SA:MP Exploit?/Freeze problem/Flood?/Ghost Bug

That bug was most likely addressed back in 0.3z in the sa-mp raknet code. (see messageholelimit and ackslimit cvars; iirc there's a post by kalcor explaining them)
However, the said exploit makes...
Forum: Scripting Help 17/04/2018, 08:57 AM
Replies: 8
Views: 497
Posted By Spmn
Re: I need your opinion

When I connect to a server, I expect it to be very straightforward and intuitive/easy to interact with. That textdraw click is pointless in this context and adds 1 unnecessary step to the login...
Showing results 1 to 25 of 484

 

All times are GMT. The time now is 07:19 PM.


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