SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 118
Search took 0.01 seconds.
Search: Posts Made By: AdamsLT
Forum: Scripting Help 18/09/2019, 06:43 PM
Replies: 8
Views: 229
Posted By AdamsLT
Re: Getting ammo of holding weapon

You could try syncing it using the OnPlayerWeaponShot callback.

1ms timer wouldn't be too drastic but it will likely not need to update most of the time so it isn't quite optimal.
Forum: Scripting Help 18/09/2019, 06:31 PM
Replies: 8
Views: 229
Posted By AdamsLT
Re: Getting ammo of holding weapon

live_timer[playerid] = SetTimerEx("liveammo", 100, true, "i", playerid, id);
Is wrong, you missed 1 extra i inside of your timer

live_timer[playerid] = SetTimerEx("liveammo", 100, true, "ii",...
Forum: Client Support 29/04/2019, 04:34 PM
Replies: 2
Views: 378
Posted By AdamsLT
Re: Huge screensgot lag

Try to empty the screenshot folder.

I find that if I have it almost filled (900+ photos), the lag is noticeable for the first pic and then it disappears for the following photos if I don't turn...
Forum: Scripting Help 18/04/2019, 03:29 PM
Replies: 2
Views: 143
Posted By AdamsLT
Re: Vehicle positions

Your SQL query saves the data for ALL vehicles, that are owned by player named XXX_YYY

Specifically this part:
WHERE owner = '%s'" ,

Your vehicles need a unique identifier and you need to use...
Forum: Scripting Help 16/04/2019, 08:44 AM
Replies: 4
Views: 254
Posted By AdamsLT
Re: Respawn All Vehicles

Normally I ignore those code suggestions but I can't.
DON'T use that code, wtf. It's awful.



It depends on functions: LOOP_PLAYERS(), LevelCheck(), GetPlayerGAdminLevel(), ReturnPlayerName()...
Forum: Scripting Help 15/04/2019, 11:11 PM
Replies: 4
Views: 254
Posted By AdamsLT
Re: Respawn All Vehicles

You need to use foreach for this is. That way you won't need to loop over unused vehicleids so this loop will become a lot quicker.

But even then, lagging for 10 seconds seems unusually long. Are...
Forum: Screenshots and Videos 25/03/2019, 11:09 PM
Replies: 4
Views: 849
Posted By AdamsLT
Re: Map Concept - "Natural" garages

Thanks. You are correct about the weather.

Here is an idea to address the issue:
Incognitos streamer has a way to define areas and then callbacks for when people enter/exit them. So...
Make...
Forum: Screenshots and Videos 25/03/2019, 09:57 PM
Replies: 4
Views: 849
Posted By AdamsLT
Map Concept - "Natural" garages

So the idea is to use already existing garages in place of mapping new ones underground, playing with virtual worlds, interiors, etc.

This is not a showcase of a perfect map but an idea of how...
Forum: Scripting Help 03/03/2019, 03:22 PM
Replies: 1
Views: 101
Posted By AdamsLT
Re: Wrong date

It's because you mixed up your getdate() function.

It should be:
getdate(year, month, day);
Forum: Scripting Help 03/03/2019, 12:38 PM
Replies: 16
Views: 431
Posted By AdamsLT
Re: Siren

Your CreateVehicle line is fine. Maybe the problem isn't on the server.

Here is some things that you can consider trying out:

Do you hear any sound at all after you press H? Maybe you unbound...
Forum: Scripting Help 03/03/2019, 12:21 PM
Replies: 5
Views: 216
Posted By AdamsLT
Re: WTF? 0.3.7 Siren not working

Your code works. I literally just copy-pasted it ant tried it out on a Sultan.

One problem that I fixed:
if(GetPlayerVehicleID(playerid) == INVALID_VEHICLE_ID) return...
Forum: Scripting Help 24/02/2019, 02:25 PM
Replies: 5
Views: 176
Posted By AdamsLT
Re: Phone system help!

You would need to query the list of phone numbers in your database. Something like this:

"SELECT COUNT(*) FROM `accounts` WHERE `PhoneNumber` = '%i'"
Format this string and insert your newly...
Forum: Scripting Help 24/02/2019, 02:05 PM
Replies: 5
Views: 176
Posted By AdamsLT
Re: Phone system help!

If you want a minimum value, then you have to start at that value and generate only how much is missing from your max.
In your code it would be:
new rand = 10_000 + random(90_000);

I would...
Forum: Scripting Help 24/02/2019, 02:03 PM
Replies: 2
Views: 174
Posted By AdamsLT
Re: help please

Well, as the error suggests, it seems like you don't have a function named adminchat
You should probably see if it can be accessed from this include, if it even exists, etc.

Also, you errors...
Forum: Scripting Help 24/02/2019, 01:35 PM
Replies: 2
Views: 401
Posted By AdamsLT
Re: Speed?

AFAIK the vehicle must be moving, otherwise you can't really change the speed (or I might be forgetting about something).
Surely it won't be problematic to ask your players to move a little bit?
...
Forum: Scripting Help 21/02/2019, 12:11 AM
Replies: 7
Views: 276
Posted By AdamsLT
Re: IsPlayerConnected problem

Also, the IsPlayerConnected check should be above the pData[targetID][pIsLoggedIn] check, shouldn't it?
Because if you receive an Invalid Player ID with sscanf, then you will have an error when...
Forum: Screenshots and Videos 13/02/2019, 07:00 PM
Replies: 53
Views: 7,930
Posted By AdamsLT
Re: WTLS Updates

You wouldn't need to remodel the object, you can simply texture the windows with blank textures and they will be invisible. Then you can place some walls inside to make it look like a small room and...
Forum: Scripting Help 13/01/2019, 08:40 PM
Replies: 6
Views: 255
Posted By AdamsLT
Re: Underwater Tunnel Problem

AFAIK spawning a car deeper underwater will make it ignore the water effect.
Toggling spectating for a player on and off while the player is swimming underwater will make them ignore the water...
Forum: Scripting Help 10/12/2018, 08:41 AM
Replies: 3
Views: 202
Posted By AdamsLT
Re: Help me solve this problem!

I suspect you have forgotten a closing bracket or added one too many.
I believe the problem is not in this specific code snippet but above it.

You should look at the code above this. Did you...
Forum: Scripting Help 28/07/2018, 04:47 PM
Replies: 2
Views: 293
Posted By AdamsLT
Re: Textdraw when player aproaches door.

If you use Incognito's streamer, then you can create dynamic areas around the houses and when somebody is close enough, have the textdraw displayed,
...
Forum: Scripting Help 28/07/2018, 04:33 PM
Replies: 2
Views: 254
Posted By AdamsLT
Re: Server Crashed Help me !!

It seems that you tried to write to an array at an index that is above the size of said array?

Trying to do everything with the crashdetect plugin and the gamemode compiled with the -d3 flag would...
Forum: Scripting Help 20/07/2018, 10:41 AM
Replies: 2
Views: 257
Posted By AdamsLT
Re: Help me Playerid

format(string, sizeof(string), "(( Ban dang bi thuong, /damages %d de biet them thong tin. ))");

In this line you format the string but forget to insert anything inside of the %d placeholder.
...
Forum: General 28/06/2018, 06:12 PM
Replies: 15
Views: 2,320
Posted By AdamsLT
Re: Is map stealing still a thing?

AFAIK moving objects after creating them does not prevent people from stealing them and it will only complicate things for you. I'm unsure if there is a way to actually prevent map ripping.

I...
Forum: Scripting Help 25/06/2018, 03:33 PM
Replies: 8
Views: 330
Posted By AdamsLT
Re: object growing with time

They are likely doing one of these options:
- using different objects,
- having the same object but slowly raising it up, so more of it is visible every growth cycle,

I doubt they are resizing...
Forum: Scripting Help 25/06/2018, 03:23 PM
Replies: 1
Views: 187
Posted By AdamsLT
Re: 2 questions

1. You don't need 0.3DL but it would be difficult to maintain such a server since your players will need to download the objects and add them themselves (unless you make a custom installer/launcher...
Showing results 1 to 25 of 118

 

All times are GMT. The time now is 11:07 AM.


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