SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.13 seconds.
Search: Posts Made By: jasperschellekens
Forum: Scripting Help 03/04/2020, 11:42 AM
Replies: 6
Views: 53
Posted By jasperschellekens
Re: errors

A quick guess here is that your mysql format string /query/ is way to long.
Use strcat.

An example:

format(str, sizeof(str), "Hello");
strcat(str2, str);

format(str, sizeof(str),...
Forum: Scripting Help 03/04/2020, 11:38 AM
Replies: 7
Views: 71
Posted By jasperschellekens
Re: A little help with " switch"

Adamoneoone is right, you can only use integers.


switch(integer)
{
case 0: // integer was 0
case 1: // integer was 1
default: // same as else on an if statement
}
Forum: Scripting Help 02/04/2020, 01:16 PM
Replies: 3
Views: 63
Posted By jasperschellekens
Re: Problem with Selectable textdraw

Are you sure PlayerTextDrawTextSize is correct?
Forum: Scripting Help 01/04/2020, 03:45 PM
Replies: 3
Views: 34
Posted By jasperschellekens
Re: [Help me!] YSI Error.

fatal error 111: user error: Please update "https://github.com/Zeex/amx_assembly" to get "deref()"

That error literally tells you what you have to do.
Forum: Server Support 31/03/2020, 07:51 PM
Replies: 14,583
Views: 1,820,083
Posted By jasperschellekens
Re: Looking for scripters/helpers? Post here!

Undead Wasteland Roleplay finally has an official live beta release date and we are still looking for:
- Mappers
- Beta Testers
- Story Writers
- Game Modders (e.g objects and skins)

Discord:...
Forum: Scripting Help 31/03/2020, 08:31 AM
Replies: 3
Views: 85
Posted By jasperschellekens
Re: MySQL Error on server start

You are missing something alot, I've colored it red.

mysql_format(Database, DB_Query, sizeof(DB_Query), "UPDATE `PLAYERS` SET `SCORE` = '%d', `CASH` = '%d', `KILLS` = '%d', `DEATHS` = '%d' WHERE...
Forum: Scripting Help 31/03/2020, 08:25 AM
Replies: 2
Views: 71
Posted By jasperschellekens
Re: safe remove

https://forum.sa-mp.com/showthread.php?t=570937
Forum: Scripting Help 30/03/2020, 08:29 AM
Replies: 7
Views: 71
Posted By jasperschellekens
Re: Timestamp detect and delete

What you could do here is use GetDate to get the day, month and year.

getdate(year, month, day);

Then you proceed on saving these stats for the player, preferably under onplayerconnect so it...
Forum: Scripting Help 28/03/2020, 04:16 PM
Replies: 3
Views: 97
Posted By jasperschellekens
Re: sequentially Number In Dialog??

You could do this using a loop.


for(new d = 0;d<10;d++)
{
format(prepstr,sizeof(prepstr),"%d\n",d);
strcat(str,prepstr);
}
ShowPlayerDialog(playerid, DIALOG_NONE,...
Forum: Scripting Help 28/03/2020, 04:12 PM
Replies: 2
Views: 70
Posted By jasperschellekens
Re: Help Converting Mysql to Dini

This is an odd question indeed. I've seen plenty of people wanting to convert from dini to sql but the other way around? I also strongly advise against it. MySQL gives you more freedom code-wise...
Forum: Scripting Help 28/03/2020, 11:21 AM
Replies: 8
Views: 156
Posted By jasperschellekens
Re: Identifiers ID

This is absolutaly true. It really depends on the kind of table you are creating.
For example user accounts, you will want to use auto increment so each account has it's own unique ID which it can...
Forum: Scripting Help 26/03/2020, 11:30 AM
Replies: 4
Views: 107
Posted By jasperschellekens
Re: Tip for fast convert GAMEMODE INI to SQL

There is no /fast/ way. Converting a gamemode takes so much time you're better off writing a new one from scratch. I can tell from my own personal experience.
Forum: Scripting Help 25/03/2020, 03:13 PM
Replies: 0
Views: 38
Posted By jasperschellekens
Make a NPC face a player RNPC

I've been struggling with this for a while now.
What I want to do is that the NPC turns around and face the player while the player interacts with it but that simply doesn't happen. It just pauses...
Forum: Scripting Help 23/03/2020, 10:50 PM
Replies: 1
Views: 46
Posted By jasperschellekens
Question about RNPC

Is it possible to get the ID of the NPC right after connecting it?

ConnectRNPC(name);
npcid=?
Forum: Scripting Help 23/03/2020, 10:27 PM
Replies: 7
Views: 95
Posted By jasperschellekens
Re: Convert object function to DynamicObject function.

You can use a simple text editor and ctrl + h.
Forum: Scripting Help 22/03/2020, 04:07 PM
Replies: 5
Views: 116
Posted By jasperschellekens
Re: Check if player has specified word in their name

https://wiki.sa-mp.com/wiki/Strcmp
Forum: Server Support 22/03/2020, 04:05 PM
Replies: 14,583
Views: 1,820,083
Posted By jasperschellekens
Re: Looking for scripters/helpers? Post here!

UW-RP is opening very soon and we are still looking for:
- Mappers
- Testers
- Story writers (e.g quests)
- Modders (e.g objects and skins)

Contact Jasper on Discord if you are interested....
Forum: Scripting Help 17/03/2020, 09:51 PM
Replies: 7
Views: 98
Posted By jasperschellekens
Re: Destroy Cars in an iter

Using max vehicles will have a loop of like 1k while there may only be 2 vehicles. Not really efficient.
I have a global var which counts the vehicles that are currently spawned and then you can do...
Forum: Scripting Help 16/03/2020, 02:30 PM
Replies: 3
Views: 168
Posted By jasperschellekens
Re: Crashdetect not printing when server crash

Are you compiling in debug mode?
https://github.com/Zeex/samp-plugin-crashdetect/wiki/Compiling-scripts-with-debug-info
Forum: Scripting Help 16/03/2020, 02:27 PM
Replies: 5
Views: 124
Posted By jasperschellekens
Re: NPC Help

Do you have this added?

#include <a_samp>
Forum: Everything and Nothing 13/03/2020, 06:18 PM
Replies: 2
Views: 290
Posted By jasperschellekens
Re: Zombie RP servers?

I am currently working on one.
Forum: Server Support 07/03/2020, 09:36 AM
Replies: 14,583
Views: 1,820,083
Posted By jasperschellekens
Re: Looking for scripters/helpers? Post here!

UW-RP is opening very soon and we are still looking for:
- Mappers
- Testers
- Story writers (e.g quests)
- Modders (e.g objects and skins)

Contact Jasper on Discord if you are interested....
Forum: Scripting Help 01/03/2020, 05:29 PM
Replies: 6
Views: 133
Posted By jasperschellekens
Re: Dialog

You are using TABLIST_HEADERS here.
Quick example from my gamemode:

format(prepcontent,sizeof(prepcontent), "%d \t%s \t%d\n",slot, GetItemName(modelid), iamount);...
Forum: Scripting Help 01/03/2020, 03:21 PM
Replies: 8
Views: 205
Posted By jasperschellekens
Re: NEED HELP AGAIN :(

Can you show us the enum related to Fabricas and the function CargarFabricass()?
Forum: Scripting Help 29/02/2020, 11:26 AM
Replies: 2
Views: 78
Posted By jasperschellekens
Odd problem with ApplyAnimation

I'm working on the zombie system for my server and I am implenting animations for the bite attack on the player.
Now the animation for the NPC works just fine, but the player just stands idle and...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 04:11 PM.


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