SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: DRIFT_HUNTER
Forum: Scripting Help 19/08/2019, 10:04 PM
Replies: 10
Views: 129
Posted By DRIFT_HUNTER
Re: Compiling on linux

Just get https://github.com/pawn-lang/compiler and use something like Sublime or Visual Studio Code
Forum: Scripting Help 19/08/2019, 01:44 AM
Replies: 3
Views: 156
Posted By DRIFT_HUNTER
Re: High CPU usage, please help me

Try profiler plugin, it should tell you where the problem is when it happens.
Forum: Scripting Help 29/07/2019, 06:22 PM
Replies: 10
Views: 291
Posted By DRIFT_HUNTER
Re: Random array

There is nothing to optimize. Its not like you will have 10k of such strings. And even if you did, most of the time you will sacrifice ram in order to gain speed.
Forum: Scripting Help 28/07/2019, 12:32 PM
Replies: 5
Views: 99
Posted By DRIFT_HUNTER
Re: Doubt

if(IsEngineVehicle(vehicleid) && !IsATaxi(vehicleid)) GivePlayerWantedLevel(playerid, GRAND_THEFT_AUTO, TinyString);
Forum: Scripting Help 25/07/2019, 05:52 PM
Replies: 9
Views: 175
Posted By DRIFT_HUNTER
Re: FCNPC issue

Check if FCNPC plugin is loading, and make sure that include and plugin are same version (and that your script is compiled with correct plugin - that is you dont have multiple pawn compilers on your...
Forum: Everything and Nothing 06/07/2019, 08:01 PM
Replies: 17
Views: 767
Posted By DRIFT_HUNTER
Re: Favourite Genre of Music

Indie/Alternative
Forum: Scripting Help 24/06/2019, 06:46 AM
Replies: 3
Views: 127
Posted By DRIFT_HUNTER
Re: CreateDynamicObjectEx !?

https://convertffs.com/
Forum: General 20/06/2019, 10:50 PM
Replies: 8
Views: 1,265
Posted By DRIFT_HUNTER
Re: Security/expert needed (paid job)

First step is analysing where (how) he is attacking. Most tools have some kind of signature. A single port they attack, same packet they send, same time to live, and so on...Then create ip table rule...
Forum: SA-MP 0.3.DL 13/06/2019, 06:16 PM
Replies: 6
Views: 2,172
Posted By DRIFT_HUNTER
Re: SA-MP 0.3.DL - Custom Objects and skins limits.

My guess would be 65535 minus what is already used.
Forum: Discussion 08/06/2019, 07:07 PM
Replies: 14
Views: 886
Posted By DRIFT_HUNTER
Re: Which CMD system are you using?

Never understood people and speed optimization for calling command callback...Its not like player is gonna be using 5 commands every second (non stop). Just use what you feel comfortable with,...
Forum: Scripting Help 07/06/2019, 07:16 PM
Replies: 12
Views: 317
Posted By DRIFT_HUNTER
Re: Checking if player is in range of several points

You have floats for coordinates not integers

Float;PosX,
Float:PosY,
Float:PosZ
Forum: Scripting Help 05/06/2019, 05:29 PM
Replies: 22
Views: 493
Posted By DRIFT_HUNTER
Re: Random (Choose Player On Event)

Everything seems fine to me...
Forum: Everything and Nothing 05/06/2019, 04:50 PM
Replies: 5
Views: 419
Posted By DRIFT_HUNTER
Re: Can't access SAMP forum at all.

Try flushing DNS if you are on windows and restarting router if you have one (easiest way to flush DNS).
Forum: Scripting Help 05/06/2019, 04:45 PM
Replies: 22
Views: 493
Posted By DRIFT_HUNTER
Re: Random (Choose Player On Event)

Use y_iterate.inc (if you dont know what it is, its basically a more integrated foreach include into YSI).

Iter_Random(Iterator);
Forum: Discussion 03/06/2019, 06:25 PM
Replies: 6
Views: 413
Posted By DRIFT_HUNTER
Re: Inventory Structure

Keep things separate. In fact i would make containers for items and reuse them for things like vehicle storage, boxes and other stuff.
Forum: Scripting Help 23/05/2019, 07:31 PM
Replies: 12
Views: 328
Posted By DRIFT_HUNTER
Re: Buyvehicle

For god sake, add Crash Detect plugin already. Whenever your array gets out of bounds it will tell you. The size of the array will be one of the pointers on where to look.
Forum: Scripting Help 22/05/2019, 04:43 PM
Replies: 11
Views: 281
Posted By DRIFT_HUNTER
Re: How to force a command in zcmd

Second argument should be a string, so pass a string and let scanf handle it the way its supposed to. And even better, create a single function pay and reuse it. But as direct answer to your...
Forum: Scripting Help 16/05/2019, 06:11 PM
Replies: 4
Views: 164
Posted By DRIFT_HUNTER
Re: Is it possible to determine the color at the traffic light (object)?

Not sure, but as far as i know they are synced...so it should be possible. Question is how.
Forum: Scripting Help 11/05/2019, 08:47 PM
Replies: 8
Views: 174
Posted By DRIFT_HUNTER
Re: not random . order

new gMessagesCount = 0;

forward TiempoAutomatico();
public TiempoAutomatico()
{

TextDrawSetString(Automatico, MensajesRandom[gMessagesCount]);
gMessagesCount++;
if(gMessagesCount >=...
Forum: Bug Reports 11/05/2019, 08:36 PM
Replies: 5
Views: 2,594
Posted By DRIFT_HUNTER
Re: Move Object and reconnect (0.3.DL?)

First of all, its not bad solution. Its not perfect but it is the best one you will get with available functions in samp.

Second, why not use streamer plugin? Its stable, its fast and its awesome....
Forum: Discussion 09/02/2019, 12:33 PM
Replies: 7
Views: 708
Posted By DRIFT_HUNTER
Re: Best way to make log system?

If done right, MySql will be more powerful, but file logs are way easier to rotate and backup (not that it would be hard with MySql with few queries inside a script, but it would take time and load...
Forum: Everything and Nothing 08/01/2019, 07:42 PM
Replies: 24
Views: 2,580
Posted By DRIFT_HUNTER
Re: A* Pathfinder (3D map) in samp

Long time ago (like a year maybe even more) i modified FCNPC and ColAndreas for pathfinder prototype. What i basically did is use pathfinder plugin, and use simple coordinates like it does for...
Forum: Everything and Nothing 24/12/2018, 01:39 PM
Replies: 10
Views: 671
Posted By DRIFT_HUNTER
Re: Edge to Chromium, what do you think?

Do i need to say anything else?
Forum: SA-MP 0.3.DL 09/12/2018, 02:19 AM
Replies: 2
Views: 579
Posted By DRIFT_HUNTER
Re: vehicle attachments

Its probably script itself. Its just sees 0.3dl id's as invalid.
Forum: Discussion 16/11/2018, 01:21 AM
Replies: 17
Views: 1,524
Posted By DRIFT_HUNTER
Re: Saving players stats on changes or in timer? [MySQL]

Usually you want to save on each change, even money. But some things like online time, i would save on timer basis and call single query (well a few queries are not problem as long they are not for...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 09:31 PM.


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