SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 354
Search took 0.01 seconds.
Search: Posts Made By: Badger(new)
Forum: Scripting Help 25/06/2012, 10:34 AM
Replies: 5
Views: 523
Posted By Badger(new)
Post Re: Need me more things and have a problem .. [+REP]

Hey.

You need to be able to do some research yourself.
Check this (http://forum.sa-mp.com/forumdisplay.php?f=17) part of the forum for scripts people have released.

If you want make something...
Forum: Scripting Help 25/06/2012, 12:23 AM
Replies: 2
Views: 791
Posted By Badger(new)
Re: Need help with /callcar command

Hey there.

First I'd like to say that making a single dialog page with every vehicle in the game will not work well.

You're going to have 211 (around that) lines to show every vehicle, which...
Forum: Scripting Help 25/06/2012, 12:12 AM
Replies: 16
Views: 2,471
Posted By Badger(new)
Re: MySQL save problem (BIG string)

Like I said, it is good practice (and highly recommended at this point) to surround your column/table names with `` and your variables with ''.

You need to change "INT = %d" to "`INT` = %d"...
Forum: Scripting Help 24/06/2012, 11:29 PM
Replies: 1
Views: 474
Posted By Badger(new)
Re: Help with gas vehicle

Hello.

This
Gas[vehicle]--;
Reduces the amount of gas in the vehicle by one.

If you want it to lower gas at a slower rate, you need to slow down the rate at which the function "CheckGas" is...
Forum: Scripting Help 24/06/2012, 11:17 PM
Replies: 11
Views: 1,932
Posted By Badger(new)
Re: invisible objects

Hi.

Although I am unable to recommend how to make an object invisable using the material function, an alternative solution would be to use SetPlayerWorldBounds...
Forum: Scripting Help 24/06/2012, 11:11 PM
Replies: 2
Views: 1,428
Posted By Badger(new)
Re: how can i make /escape command?

Hello there.

I haven't seen any of your code, so I can't say what variables you are using to store data on the player (e.g. jail time, number of escape attempts), so I shall be writing code that...
Forum: Scripting Help 24/06/2012, 10:45 PM
Replies: 16
Views: 2,471
Posted By Badger(new)
Re: MySQL save problem (BIG string)

As I said, it's good practice to surround your variables with the ''s so you remember to do it when otherwise it could cause errors.

The same goes for the column/table names, since I first...
Forum: Scripting Help 24/06/2012, 10:41 PM
Replies: 3
Views: 734
Posted By Badger(new)
Re: [help] PPC_Business

Hello.

If you want all players to be able to enter, then you don't need to check what businesses the player owns.


COMMAND:enter(playerid, params[])
{
// If a player hasn't logged in...
Forum: Scripting Help 24/06/2012, 10:16 PM
Replies: 16
Views: 2,471
Posted By Badger(new)
Re: MySQL save problem (BIG string)

I understand it may be hard to read all that, especially with the length of your queries and errors.

The problem you are having is because "lock" is some kind of SQL keyword...
Forum: Scripting Help 24/06/2012, 10:11 PM
Replies: 4
Views: 1,204
Posted By Badger(new)
Re: /changenick doesnt overwrite the existing file.

A few things need to be fixed first:


if(strcmp(cmd,"/changenick",true)==0)
{
if(PlayerInfo[playerid][power] >= 10)
{
new tmp[128],nickid;
new oldname[ MAX_PLAYER_NAME +9 ],...
Forum: Scripting Help 24/06/2012, 09:43 PM
Replies: 6
Views: 1,341
Posted By Badger(new)
Re: Unreachable Code!

You've got some extra code on the sscanf line which isn't surrounded by { }.

Replace this:

if(sscanf(params, "s", value)) SendClientMessage(playerid, -1, "Syntax: /setringtone [url/ringotne]");...
Forum: Scripting Help 24/06/2012, 09:28 PM
Replies: 16
Views: 2,471
Posted By Badger(new)
Re: MySQL save problem (BIG string)

Hello. You need to learn to read the error messages.

#1: "Error #1064....near '0.000000', WZ = '0.000000'" It's telling you where the problem is in your query.
If you look below this, you can see...
Forum: Scripting Help 24/06/2012, 09:19 PM
Replies: 2
Views: 656
Posted By Badger(new)
Re: [HELP] With sscanf

Hello.

The variable "cmdtext" contains the WHOLE command.
E.g. If you typed "/sg hello" cmdtext would equal "/sg hello".

Sscanf isn't reporting that it can't find a string because when you...
Forum: Scripting Help 22/06/2012, 09:58 AM
Replies: 8
Views: 1,621
Posted By Badger(new)
Re: load car's problem

Hello.

Could you provide some more information on the files "cars.cfg"?

Where is it from? What is it for? What information is in it? What are you trying to do with it?
Forum: Help Archive 17/08/2011, 01:45 PM
Replies: 8
Views: 1,411
Posted By Badger(new)
Re: Police Sirens not working

Well the other thing to do, would be to check under
public OnPlayerKeyStateChange
Or search for
GetPlayerKeys
As, if it is the script causing the problem, then the script would need to detect the...
Forum: Help Archive 17/08/2011, 06:12 AM
Replies: 3
Views: 1,021
Posted By Badger(new)
Re: Help with SetPlayerMarkerForPlayer

If you're going to use GetPlayerColor (http://wiki.sa-mp.com/wiki/GetPlayerColor), you need to use SetPlayerColor first (click the link above).

If you use the color fix, which has a link on that...
Forum: Help Archive 17/08/2011, 05:33 AM
Replies: 10
Views: 1,834
Posted By Badger(new)
Re: OnPlayerConnect

I could not see that in the code you provided.

If you have used it, add -FF to the end of the colour to make map icons invisable (this will take away the alpha/transparency value, the last bit of...
Forum: Help Archive 17/08/2011, 05:28 AM
Replies: 6
Views: 1,094
Posted By Badger(new)
Re: [HELP]Connection

Try:
public OnPlayerConnect(playerid)
{
new string[128];
format(string, sizeof(string), "%s (ID: %d) has joined the server!", GetPlayerName(playerid),playerid);
SendClientMessageToAll(-1,...
Forum: Help Archive 17/08/2011, 05:18 AM
Replies: 3
Views: 866
Posted By Badger(new)
Re: got problem with command

As the others above have said, somewhere above that code you may be missing a } somewhere.
This can be found easily by commenting out (see below for example) sections of code, in this case, other...
Forum: Help Archive 17/08/2011, 05:10 AM
Replies: 3
Views: 749
Posted By Badger(new)
Re: if player logs in rcon?

When a player logs into RCON, this (http://wiki.sa-mp.com/wiki/OnRconLoginAttempt) callback is called.
Forum: Help Archive 17/08/2011, 04:51 AM
Replies: 19
Views: 4,593
Posted By Badger(new)
Re: TextDraw Won't Show!

You do not need to create the same textdraw 500 times.


I couldn't spot any errors in the code you provided, so I suspect there are other things possibly preventing the TextDraw from being seen....
Forum: Help Archive 17/08/2011, 04:43 AM
Replies: 4
Views: 650
Posted By Badger(new)
Re: Need help with gtarp /rentbike

That whole one line processes the player typing /Rentbike?
Forum: Help Archive 17/08/2011, 04:39 AM
Replies: 10
Views: 1,834
Posted By Badger(new)
Re: OnPlayerConnect

A quote from the wiki article on GetPlayerColor

If you want to use the default colours, click here (http://wiki.sa-mp.com/wiki/ColorFix), and add that code to your script.
Then, when a player...
Forum: Help Archive 17/08/2011, 04:32 AM
Replies: 8
Views: 1,411
Posted By Badger(new)
Re: Police Sirens not working

The function to change a vehicle's lights status is
UpdateVehicleDamageStatus
Check your gamemode, filterscripts and includes for this function as this is (I believe) the only way the lights can...
Forum: Tools and Files 22/12/2010, 08:55 PM
Replies: 427
Views: 312,191
Posted By Badger(new)
Re: REAL Map editor: The fixed edition! (UPDATED 15th December - 0.3c support!)

Yeah just fly up to a height of about 1000 and you should see them. If not, try going up really high so the map corners disappear, set the draw distance to about 75% and zoom into the map until the...
Showing results 1 to 25 of 354

 

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


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