SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 140
Search took 0.00 seconds.
Search: Posts Made By: Campbell-
Forum: Plugin Development 07/11/2014, 05:48 AM
Replies: 6,158
Views: 2,315,300
Posted By Campbell-
Re: [REL] MySQL Plugin (Now on github!)

Can you add a static version for CentOS 6 for R39-2?
Forum: Scripting Help 01/11/2014, 06:53 PM
Replies: 3
Views: 522
Posted By Campbell-
Re: Respawn all unused Vehicle Cmd

Iterate through all spawned vehicles.
Check whether they are occupied or not.
Respawn the vehicles that are not occupied.


How far can you solve it yourself? What obstacles do you come...
Forum: Scripting Help 01/11/2014, 04:09 PM
Replies: 11
Views: 4,103
Posted By Campbell-
Re: Re : Another way of doing multi-threading - HTTP

Why think about linear and binary search algorithms? Let's not reinvent the wheel. When a database is set up properly the best technique to search a set of +/- 10000 data sets will be chosen by the...
Forum: Scripting Help 22/06/2014, 10:32 PM
Replies: 5
Views: 392
Posted By Campbell-
AW: Re: Wreck of car

That wouldn't be a wreck. There is only one object of a wreck but you can't keep wrecks of vehicles spawned. You can only keep the actual vehicles spawned.
Forum: Scripting Help 22/06/2014, 10:11 PM
Replies: 5
Views: 392
Posted By Campbell-
Forum: Scripting Help 22/06/2014, 01:09 PM
Replies: 5
Views: 466
Posted By Campbell-
AW: [HELP] player name id

The usage of MAX_PLAYER_NAME in a for-loop is rather non-sense in this case.
Forum: Scripting Help 22/06/2014, 01:05 PM
Replies: 3
Views: 1,097
Posted By Campbell-
AW: How would I do this in an array or static const?

Problem is that we have an undefinite amount of matching relations but are unable to have an array with an undefinite amount of cells, so I'd recommend this way (Make sure to adjust MAX_RELATIONS...
Forum: Scripting Help 22/06/2014, 09:44 AM
Replies: 3
Views: 1,097
Posted By Campbell-
Re: How would I do this in an array or static const?

First of all, you have to distinguish the terms from each other. They all mean something in particular and can be combined all together:

Static: The static keyword makes your variables only...
Forum: Scripting Help 21/06/2014, 09:25 PM
Replies: 5
Views: 442
Posted By Campbell-
Re: Tazer

Seems like you didn't finish reading my post. :)
Forum: Scripting Help 21/06/2014, 09:19 PM
Replies: 5
Views: 442
Posted By Campbell-
Re: Tazer

You can't prevent that the player looses health, you can just give the health back. You can also set the players in the same team beforehand and handle the complete damage-management yourself.
Forum: Scripting Help 21/06/2014, 09:04 PM
Replies: 9
Views: 1,065
Posted By Campbell-
Re: How to show this for the driver and the passenger ?

Don't ever make use of the 'ProxDetector' in your script. It's outdated and not well written.
Don't use an extra function to save a player's name (GetPlayerNameEx()). Save the player's name in a...
Forum: Scripting Help 21/06/2014, 08:58 PM
Replies: 4
Views: 559
Posted By Campbell-
Re: use getplayerweapondata as condition.

Why a two-dimensional array when a one-dimensional array would be enough? As far as I see, you do not have to temporarily store the results you get in the for-loop. Aswell, you should make sure to...
Forum: Scripting Help 21/06/2014, 02:18 PM
Replies: 14
Views: 1,351
Posted By Campbell-
Re: Array elements memory usage question

Let's not guess, let the results speak for themselves (I am running these tests below on a 32-bit platform):



Let's compile the following code at first:

main() {}

Result:
Forum: Scripting Help 21/06/2014, 01:05 PM
Replies: 15
Views: 1,154
Posted By Campbell-
Re: Decryption password

Notice: Encryption != Hashing

Whoever encyrpts passwords should return to the basics of the topic 'password storage'. Because whatever gets -encrypted- can be -decrypted-.
Forum: Scripting Help 20/05/2014, 01:50 PM
Replies: 14
Views: 903
Posted By Campbell-
Re: Errors help.

Check the switch that refers to the first error. There has to be some sort of mistake there as your command follows a case. You're propably missing the end of the switch structure.
Forum: Scripting Help 20/05/2014, 01:47 PM
Replies: 20
Views: 1,424
Posted By Campbell-
Re: How to stop attacks

Change your RCON password.
Disable remote RCON access.
Create logs to see why your people get banned by who (Command Log, Ban Log, RCON-Command Log (OnRconCommand())).
Forum: Scripting Help 20/05/2014, 01:40 PM
Replies: 15
Views: 716
Posted By Campbell-
Re: Mysql error help

http://forum.sa-mp.com/showthread.php?t=441912
Forum: Scripting Help 20/05/2014, 01:38 PM
Replies: 2
Views: 370
Posted By Campbell-
Re: Some functions & command in mysql .. ?

... and what was your intention to post here in the first place?



Not useful at all when there's not a question stated.
Forum: Scripting Help 18/05/2014, 12:51 PM
Replies: 24
Views: 1,687
Posted By Campbell-
Re: Clickable textdraws.

It's possible by activating the box of the TextDraw. It'll create a TextDrawTextSize()-line with the area the box covers. Eventually, just remove the box manually and voilá, there you have your...
Forum: Scripting Help 18/05/2014, 12:48 PM
Replies: 4,143
Views: 630,224
Posted By Campbell-
Re: Little coding questions - For general minor queries 5

It would make a lot more sense using the created vehicle's ID. Otherwise, it'll cause problems once vehicles get destroyed and others spawned.
Forum: Scripting Help 18/05/2014, 12:44 PM
Replies: 3
Views: 768
Posted By Campbell-
Re: sscanf strings to array problem

See: http://forum.sa-mp.com/showpost.php?p=1620320&postcount=3
Forum: Scripting Help 18/05/2014, 12:32 PM
Replies: 24
Views: 1,687
Posted By Campbell-
Re: Clickable textdraws.

You'll have to play with the X and Y coordinates in TextDrawTextSize() as it defines the area in which the textdraw is clickable. At the moment the Y coordinate is 0.0 so there is no actual area in...
Forum: Scripting Help 18/05/2014, 12:30 PM
Replies: 1
Views: 353
Posted By Campbell-
Re: Objects won't appear :(

Check your logs, debug, ... - There's nothing we can do to help you from this position.
Forum: Scripting Help 16/05/2014, 09:37 AM
Replies: 5
Views: 452
Posted By Campbell-
Re: Help me /pay

Assuming that the variable 'val' includes the entered amount of money to be transfered:


new val = 12.56,
data[2]; // data[0]: dollars, data[1]: cents

data[0] = floatround(val,...
Forum: Scripting Help 16/05/2014, 09:32 AM
Replies: 4
Views: 877
Posted By Campbell-
Re: On Player Crash

It doesn't matter whether the player crashes, gets kicked/banned, times out or disconnects. The functions GetPlayerScore(), GetPlayerMoney(), ... work at all times in the...
Showing results 1 to 25 of 140

 

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


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