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: jasperschellekens
Forum: Scripting Help 27/05/2020, 06:17 PM
Replies: 6
Views: 76
Posted By jasperschellekens
Re: pairing system

You could use foreach for this.


new Var[MAX_PLAYERS];

foreach(new i:Player)
{
if(Var[i] == 123) {
// Do something for players that has Var set to 123
}
Forum: Scripting Help 27/05/2020, 03:01 PM
Replies: 5
Views: 55
Posted By jasperschellekens
Re: Vehicles falling down on CreateObject custom model

Does it happen right after the vehicle is created?
What you could do is add a timer that checks if the vehicle is falling ( z axis decreasing) and if that happens teleport it back to it's last...
Forum: Scripting Help 27/05/2020, 02:47 PM
Replies: 1
Views: 29
Posted By jasperschellekens
Pamdex Pathfinder and streamer(objects)

Hi everyone,

I finally got Pamdex's pathfinder to work with my NPC system.
It works perfect for samp default objects but it does not for custom placed objects.
Note: I do not know if this...
Forum: Server Support 27/05/2020, 12:46 PM
Replies: 6
Views: 106
Posted By jasperschellekens
Re: portforwarding but still not working

Does your local ip forward to the correct local ip you received with ipconfig?
Forum: Scripting Help 20/05/2020, 11:34 PM
Replies: 2
Views: 75
Posted By jasperschellekens
Re: How do I make a sales dialogue?

If i'm correct you want to create a store where players can buy items?
You can also use a neat include like this one:
https://forum.sa-mp.com/showthread.php?t=644913
Forum: Scripting Help 20/05/2020, 09:09 PM
Replies: 6
Views: 152
Posted By jasperschellekens
Re: mysql counting rows in accounts table

Try this:


mysql_query(mysql, "SELECT * FROM `accounts`"); // I always use SELECT ID or something else rather than everything (*)

new rows;
cache_get_row_count(rows);

format(string,...
Forum: Scripting Help 20/05/2020, 05:51 PM
Replies: 1
Views: 83
Posted By jasperschellekens
Re: AdminSystem MYSQL

This is where you start: https://wiki.sa-mp.com/
It contains everything you need to know.
Forum: Screenshots and Videos 20/05/2020, 03:20 PM
Replies: 10
Views: 401
Posted By jasperschellekens
Re: Textdraw Horse Betting (Inside Track)

Then you should use setstring instead of recreating them.
Forum: Screenshots and Videos 20/05/2020, 12:52 PM
Replies: 10
Views: 401
Posted By jasperschellekens
Re: Textdraw Horse Betting (Inside Track)

Kind of wondering how you did the horse sprite.
Is it an actual animated sprite or multiple sprites that you loop?
Forum: Scripting Help 19/05/2020, 12:11 AM
Replies: 5
Views: 97
Posted By jasperschellekens
Re: Account is not saving

Yeah, and that's only a glimp of the many issues those saving systems from the stone age have. It's buggy and outdated and people avoid it for a reason. So what @v1k1nG said; Use MySQL, or if you...
Forum: Scripting Help 19/05/2020, 12:08 AM
Replies: 6
Views: 128
Posted By jasperschellekens
Re: [HELP] Impossible connect with MySQL

This literally tells you that you have the wrong credentials for your database:

Iniciando la conexión con MySQL: (Servidor: 'localhost', Usuario: 'root', Base de datos: 'sanfierro', Clave: '')...
Forum: Scripting Help 18/05/2020, 02:15 PM
Replies: 8
Views: 119
Posted By jasperschellekens
Re: Need help with warnings

It is perfectly fine to help someone, no need to apologize for that either. Just don't reply to threads if you have no idea what you are talking about.
Forum: Scripting Help 18/05/2020, 02:00 PM
Replies: 11
Views: 197
Posted By jasperschellekens
Re: achievements

Use a seperate table with an Primary key auto IC ID and a column which holds the users/characters ID.

You don't need a timer for that.

Kill archievement? Let's say people get an archievment at...
Forum: Scripting Help 18/05/2020, 01:57 PM
Replies: 16
Views: 214
Posted By jasperschellekens
Re: My Server Problem

I'm sorry sir, my glass ball which I use to magically look into people's code has broken the other day.
Forum: Scripting Help 18/05/2020, 01:47 PM
Replies: 8
Views: 144
Posted By jasperschellekens
Re: invisible player even if we are in the same vw and interior

Very good suggestion. Alternatively you can use print() or printf() to print the debug info directly in the server console.
Forum: Scripting Help 18/05/2020, 01:30 PM
Replies: 8
Views: 144
Posted By jasperschellekens
Re: invisible player even if we are in the same vw and interior

What have you tried to debug the problem?
Use GetPlayerVirtualWorld to confirm the worlds are the same as this is one of the first steps in debugging a problem like this.
Forum: Scripting Help 18/05/2020, 01:21 PM
Replies: 8
Views: 119
Posted By jasperschellekens
Re: Need help with warnings

This must be the most terrible advice I have ever seen.
Forum: Scripting Help 17/05/2020, 10:57 AM
Replies: 1
Views: 62
Posted By jasperschellekens
Re: Help saving hours minutes,seconds.

So, it's wrong.... It's really wrong to use a saving system like this in 2020.
Take a look into MySQL or if you don't have access to a php my admin database, use sqlite. Becuase not only is your...
Forum: Scripting Help 17/05/2020, 10:54 AM
Replies: 10
Views: 231
Posted By jasperschellekens
Re: Delete3DTextLabel is not working?

There isn't really a tutorial I think, but here is some working code direct from my gamemode which is used for NPC name tags:


NpcLabel[npcid] = CreateDynamic3DTextLabel(npcname, -1, Pos[0],...
Forum: Server Support 16/05/2020, 08:17 PM
Replies: 14,702
Views: 1,864,830
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:
- Game Modders
- Loremaster
- Music Artists
- Graphic Artists

Discord:...
Forum: Scripting Help 16/05/2020, 03:25 PM
Replies: 3
Views: 102
Posted By jasperschellekens
Re: How To Make Multi Dialogs

Multi dialogs? what are you trying to archieve? Be more specific.
Forum: Scripting Help 16/05/2020, 03:23 PM
Replies: 10
Views: 231
Posted By jasperschellekens
Re: Delete3DTextLabel is not working?

3dtextlabels are quite buggy in samp.
Instead, use a streamer and stream them (dynamic 3dtext labels).
Forum: Includes 16/05/2020, 02:49 PM
Replies: 40
Views: 15,512
Posted By jasperschellekens
Re: MenuStore (Build dynamic stores with TextDraws)

Since I can't reach the author of this include, I've fixed it myself:

/*
MenuStore - Version 4.2
Created by CaioTJF
*/


/*
You can NOT change
Forum: Scripting Help 15/05/2020, 10:44 PM
Replies: 2
Views: 106
Posted By jasperschellekens
Re: How to get millseconds ?

Well, 1 second is 1000 ms.

new second, millisecond.
second = 6;
millisecond = second * 1000; // 6 seconds is 6000 ms
Forum: Includes 15/05/2020, 09:53 PM
Replies: 40
Views: 15,512
Posted By jasperschellekens
Re: MenuStore (Build dynamic stores with TextDraws)

Wanted to use this but getting the same errors
Showing results 1 to 25 of 500

 

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


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