SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: PaulDinam
Forum: Scripting Help 24/11/2017, 09:03 AM
Replies: 5
Views: 404
Posted By PaulDinam
Re: Help with AttachObjectToVehicle

Streamer_Update(playerid, type = 0 = TYPE_OBJECT);
Forum: Scripting Help 24/11/2017, 08:01 AM
Replies: 5
Views: 404
Posted By PaulDinam
Re: Help with AttachObjectToVehicle

Pretty sure It's a SAMP issue, your code is fine.
Forum: Scripting Help 24/11/2017, 07:59 AM
Replies: 5
Views: 319
Posted By PaulDinam
Re: Weird errors I dont understand.

Those two commands are already defined somewhere in your script.
Forum: Tutorials 11/11/2017, 10:53 PM
Replies: 78
Views: 46,912
Posted By PaulDinam
Re: PAWN Syntax and Compiler for Visual Studio Code

Ran into a problem:

> Executing task in folder 0.3.8 RP: I:\0.3.8 RP\pawno\pawncc.exe gamemodes/rp.pwn < 'I:\0.3.8' is not recognized as an internal or external command, operable program or batch...
Forum: Scripting Help 10/09/2017, 03:22 PM
Replies: 6
Views: 1,478
Posted By PaulDinam
Why does SAMP Query socket only allows up to 100 players

Why does SAMP Query socket only allows up to 100 players? It's also restricted on the samp client itself but when using PHP sockets as well, which is annoying. I'm creating an API for a server which...
Forum: Scripting Help 09/06/2017, 06:43 PM
Replies: 12
Views: 4,671
Posted By PaulDinam
Re: mysql_pquery vs mysql_tquery

tquery for when you have long and complex queries which shouldn't interfere with the server's main thread.
Forum: Scripting Help 09/06/2017, 04:39 AM
Replies: 12
Views: 4,671
Posted By PaulDinam
Re: mysql_pquery vs mysql_tquery

tquery is added to a queue which gets executed in a thread separated from the SAMP server, while pquery is sent immediately. pquery can be frantically dangerous for use if you depend on results from...
Forum: Scripting Help 10/05/2017, 04:01 PM
Replies: 6
Views: 825
Posted By PaulDinam
Re: is nan

Most scripts use sscanf, you can do something as simple as:

isNumeric(const str[]) return !sscanf(str, "{d}");
Forum: Scripting Help 11/09/2016, 09:34 PM
Replies: 4
Views: 759
Posted By PaulDinam
Re: OnPlayerTakeDamage

Set the player's team to 1 upon connecting, this way no damage will be done but the callback will still get called and the amount value still holds the damage it's given. So just simply do whatever...
Forum: Scripting Help 27/06/2016, 06:03 PM
Replies: 3
Views: 538
Posted By PaulDinam
#emit

Are there any tutorials about the usage of emit?
I'm looking to learn on how this code works;


stock SendClientMessageEx(playerid, color, const text[], {Float, _}:...)
{
static
args,
...
Forum: Plugin Development 22/12/2015, 12:47 PM
Replies: 72
Views: 18,386
Posted By PaulDinam
Re: Lua in SA-MP v0.1 (Alpha)

I added the streamer plugin in the server config and also the blank gamemode but when I start the server it says i'm trying to call a nill function.
Forum: Plugin Development 22/12/2015, 11:59 AM
Replies: 72
Views: 18,386
Posted By PaulDinam
Re: Lua in SA-MP v0.1 (Alpha)

Will there be a streamer support in your plugin?
Forum: Scripting Help 19/12/2015, 01:12 PM
Replies: 4
Views: 1,279
Posted By PaulDinam
Re: Hook callback

hook callbackname(args)
{
return 1;
}
Forum: Plugin Development 19/12/2015, 12:35 PM
Replies: 72
Views: 18,386
Posted By PaulDinam
Re: Lua in SA-MP v0.1 (Alpha)

This plugin is great, I hope he'll release it soon.
Forum: Plugin Development 19/12/2015, 01:16 AM
Replies: 72
Views: 18,386
Posted By PaulDinam
Re: Lua in SA-MP v0.1 (Alpha)

Textdraws have a problem as well, would be nice if you could fix it; I converted my pawn gamemode to Lua completely but the textdraws are the only issue.
http://i.imgur.com/qkhlbkM.png

...
Forum: Plugin Development 18/12/2015, 12:09 PM
Replies: 72
Views: 18,386
Posted By PaulDinam
Re: Lua in SA-MP v0.1 (Alpha)

For some reason, math. functions don't seem to work properly. Or specifically, math.random.

EDIT: nevermind, figured out you need to call a seed before using it.
Forum: Scripting Help 16/12/2015, 03:41 PM
Replies: 1
Views: 331
Posted By PaulDinam
SetPlayerMarkerForPlayer issue

I've never really used SetPlayerMarkerForPlayer, right now i'm trying to make a function so that it hides the player's marker on the radar but the color remains the same, however it works partially....
Forum: Scripting Help 15/12/2015, 01:05 PM
Replies: 1
Views: 329
Posted By PaulDinam
Re: Make this timer without using y_timers? Please help

Simply code this whole batch of code into a separate samp timer, if you don't know how to use regular timers then read it on samp wiki, it's easy.


SetTimer("SecondTimer", 1000, true);

forward...
Forum: Scripting Help 15/12/2015, 11:52 AM
Replies: 0
Views: 343
Posted By PaulDinam
Forum: Scripting Help 12/12/2015, 02:22 PM
Replies: 4
Views: 398
Posted By PaulDinam
Forum: Scripting Help 08/12/2015, 05:14 PM
Replies: 3
Views: 562
Posted By PaulDinam
Per player string

Would it be efficient to have a per player string when using dialogs instead of declaring a new string in each function?
For example; PlayerInfo[playerid][dialogText].

Then showing the contents...
Forum: Scripting Help 07/12/2015, 07:26 AM
Replies: 2
Views: 1,221
Posted By PaulDinam
Re: Someone please explain

You really expect us to tell you how to create all that from scratch do you, it's not that hard even though it's on LSRP. You should be able to do that if you have enough knowledge working around...
Forum: Scripting Help 07/12/2015, 02:41 AM
Replies: 1
Views: 447
Posted By PaulDinam
Re: Erro onplayertakedamage

You obviously did take this from somewhere else thus it says you have no variable set 'playerData'. Assuming it's the array that holds all the player data, you need to create one yourself.
Forum: Scripting Help 07/12/2015, 02:37 AM
Replies: 2
Views: 309
Posted By PaulDinam
Re: Problem with a loop

Your for loop max value is MAX_HOUSES, simply change <= MAX_HOUSES to < MAX_HOUSES.

One more thing that has caught my attention, what if not all 255 houses are being used? You need to check if the...
Forum: Server Support 07/12/2015, 01:35 AM
Replies: 14,835
Views: 1,899,245
Posted By PaulDinam
Re: Looking for scripters/helpers? Post here!

If anyone is interested with helping me testing out a roleplay script which i've recently finished working on private message me here for more information.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:28 AM.


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