SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 414
Search took 0.01 seconds.
Search: Posts Made By: Rufio
Forum: Scripting Help 28/12/2018, 12:57 PM
Replies: 2
Views: 218
Posted By Rufio
Removing the rear doors of vehicles

I want to remove the back doors of vehicles, I did a lot of ******'ing but didn't come up with anything. Currently, I am using UpdateVehicleDamageStatus along with encode_doors but it only lets me...
Forum: Scripting Help 27/08/2018, 01:46 PM
Replies: 15
Views: 721
Posted By Rufio
Re: IsPlayerInRangeOfPoint help

He can, with iterators. Don't be rude to people if you are clueless yourself.
Forum: Scripting Help 22/08/2018, 12:11 PM
Replies: 9
Views: 435
Posted By Rufio
Re: problem with saying gang name

Change it into this;


enum ENUM_PLAYER_DATA
{
GangID,
GangIDD,
NameGang[100],
OwnerGang[MAX_PLAYER_NAME]
};
Forum: Scripting Help 22/08/2018, 11:19 AM
Replies: 9
Views: 435
Posted By Rufio
Re: problem with saying gang name

What is not defined? Show us your pInfo enum.
Forum: Scripting Help 22/08/2018, 10:57 AM
Replies: 9
Views: 435
Posted By Rufio
Re: problem with saying gang name

1. You don't have to use gName, you can use params and check the size of params.
2. Why exactly are you using tquery when you aren't going to call a callback? Use mysql_query.
3. Are you sure your...
Forum: Scripting Help 22/08/2018, 10:27 AM
Replies: 6
Views: 470
Posted By Rufio
Re: check if gang name is already taken

Couple more tips; escape your string to avoid SQL injection. Use %e instead of %s for mysql formats

Also limit the result. Use LIMIT 1 at the end of your mysql query. You don't have to find more...
Forum: Scripting Help 03/08/2018, 06:56 AM
Replies: 5
Views: 312
Posted By Rufio
Re: Dialog Logging!

You don't need switch nor if statement. All you need is format. I can't give you an example code but wiki is pretty self explanatory.

http://wiki.sa-mp.com/wiki/Format
Forum: Scripting Help 02/08/2018, 12:19 PM
Replies: 3
Views: 182
Posted By Rufio
Re: How to make!

You are using the AND operator incorrectly. You have to type a statement before and after the AND operator like this;
if(statement && statement)

What it does is, it checks if both statements are...
Forum: Scripting Help 02/08/2018, 12:08 PM
Replies: 11
Views: 592
Posted By Rufio
Re: isnull problem

Shoe your sendnearmessage function as well as your current /n command
Forum: Scripting Help 02/08/2018, 11:01 AM
Replies: 11
Views: 592
Posted By Rufio
Re: isnull problem

Change your sscanf parameter to "s[128]" instead of sz.

You have to tell sscanf the size of a string as well.

Also, there is no reason not to use sscanf. I know it's a single parameter and...
Forum: Scripting Help 02/08/2018, 03:04 AM
Replies: 11
Views: 592
Posted By Rufio
Re: isnull problem

Why not use sscanf instead?
Forum: Scripting Help 02/08/2018, 02:59 AM
Replies: 13
Views: 525
Posted By Rufio
Re: NEED help when am running a command!

Instead of bumping, use [ pawn] tag without the space. Your code is a massive pain to read.
Forum: Scripting Help 02/08/2018, 02:56 AM
Replies: 10
Views: 823
Posted By Rufio
Re: register questions, help pls

Bad example. If you car is broken, it only affects you and nobody else. When a password gets leaked though, it affects the player whose password got stolen. By playing in your server(s), players...
Forum: Scripting Help 01/08/2018, 04:18 PM
Replies: 11
Views: 404
Posted By Rufio
Re: carrespawn command

Your Engine_SET function is faulty, post your Engine_SET function.
Forum: Scripting Help 01/08/2018, 02:41 PM
Replies: 11
Views: 404
Posted By Rufio
Re: carrespawn command

You haven't initiliazed your i_Vehicles properly, it does not have a starting value.

in your for(new i_Vehicles; .........) change it to

for(new i_Vehicles = 0; )

Also use this to respawn...
Forum: Scripting Help 01/08/2018, 02:27 PM
Replies: 11
Views: 404
Posted By Rufio
Re: carrespawn command

CMD:cr(playerid, params[])
{
new S[128];
if(Account[playerid][Admin] >= 1)
{
for(new i_Vehicle; i_Vehicle < MAX_VEHICLES; i_Vehicle++)
{
if( !ValakiAKocsiban(i_Vehicle))
{...
Forum: Scripting Help 01/08/2018, 01:32 PM
Replies: 2
Views: 187
Posted By Rufio
Re: moveobject / mapping error

The last 3 parameters in MoveObject are the object's rotations. Try messing with them until you get the rotation you want. The first one is rotation in the X axis, the second one is rotation in the Y...
Forum: Scripting Help 01/08/2018, 01:29 PM
Replies: 1
Views: 294
Posted By Rufio
Re: OnPlayerText - Car Windows

Use else if after your first if statement. In your current code, your server runs each if statement and checks whether or not they are true.
Forum: Scripting Help 01/08/2018, 01:27 PM
Replies: 8
Views: 512
Posted By Rufio
Forum: Scripting Help 01/08/2018, 03:58 AM
Replies: 8
Views: 512
Posted By Rufio
Re: Hidden Trailer - Enter Checkpoint not working.

I dont know if I am just sleepy but you are missing a closing bracket } in your switch.
Forum: Scripting Help 01/08/2018, 03:50 AM
Replies: 18
Views: 561
Posted By Rufio
Re: What is this error.

If you use the default ban function, the user will see "you were banned from this server.", if you want to display a custom message, you need a variable for ban and check if the player is banned in...
Forum: Scripting Help 01/08/2018, 03:46 AM
Replies: 11
Views: 748
Posted By Rufio
Re: Damage bug

Like you were told, onplayerweaponshot isnt used for damage handling. You might as well get rid of onplayerweaponshot unless you have any other code that you need inside it and move everything to...
Forum: Scripting Help 01/08/2018, 03:40 AM
Replies: 8
Views: 512
Posted By Rufio
Re: Hidden Trailer - Enter Checkpoint not working.

You don't need arrays for checkpoints to work, if you have more than 1 checkpoint, you should declare an ID for your checkpoints and check the ID of the checkpoint the user has entered. I can't check...
Forum: Scripting Help 01/08/2018, 03:34 AM
Replies: 1
Views: 209
Posted By Rufio
Re: How to save Object Rotation in variable?

Save the original position/rotation to a variable, set it back to the original pos variable once the user closes the door.
Forum: Scripting Help 01/08/2018, 03:27 AM
Replies: 10
Views: 823
Posted By Rufio
Re: register questions, help pls

Yes and no. People should learn from their mistakes but registration system is the only system you HAVE TO get right. Or you'll experience;
a) security flaws that can and will let people login as...
Showing results 1 to 25 of 414

 

All times are GMT. The time now is 03:52 PM.


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