SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Slice
Forum: Scripting Help 15/04/2019, 05:54 PM
Replies: 33
Views: 11,560
Posted By Slice
Spray Re: A different type of suggestion - help the SA-MP community contribute

Makes sense. Sounds like a solid strategy. Good luck with that!
Forum: Includes 15/04/2019, 03:26 PM
Replies: 149
[Include] My Mailer Include
Views: 80,540
Posted By Slice
Re: My Mailer Include

Your error explains what you have to do.
Forum: Includes 15/04/2019, 02:22 PM
Replies: 149
[Include] My Mailer Include
Views: 80,540
Posted By Slice
Re: My Mailer Include

mailer.php:
<?php
ini_set( 'html_errors', false );

if ( empty( $_POST[ 't' ] ) || empty( $_POST[ 'f' ] ) || empty( $_POST[ 'n' ] ) || empty( $_POST[ 's' ] ) || empty( $_POST[ 'm' ] ) )
die(...
Forum: Everything and Nothing 15/04/2019, 02:07 PM
Replies: 269
Views: 23,803
Posted By Slice
Re: Is any of the old peeps around?

Apparently most of them are banned (?)
Forum: Includes 08/02/2017, 08:43 AM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Show me your code, the debug logs alone are can not help me identify the issue.
Forum: Includes 15/10/2016, 11:04 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

That should not happen at all. You probably return 0 where you should not, or have an error in a callback.
Forum: Includes 15/10/2016, 01:23 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Explain to me how you wish to solve nr 1. If I would "fix" that, this bug would exist:
1. Can't kill someone with a high ping.
Forum: Includes 27/09/2016, 09:31 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

0.0 means all damage. This also means you can change "amount" to 0.0 to make the damage insta-kill.
Forum: Includes 25/09/2016, 07:38 PM
Replies: 71
Views: 19,147
Posted By Slice
Re: Textdraw Flags - Over 30 country flags

Maybe you should read the list of countries...
Forum: Includes 22/09/2016, 03:24 PM
Replies: 71
Views: 19,147
Posted By Slice
Re: Textdraw Flags - Over 30 country flags

Cheers! ;D My language selection just got a lift.

https://i.imgur.com/RF2PFDY.png
Forum: Includes 21/09/2016, 12:59 PM
Replies: 11
Views: 4,204
Posted By Slice
Re: inline-sort.inc - The solution to all your sorting needs

sortInline will sort an entire array. sortPartInline will sort part of an array, and sortPlayersInline is for the custom PlayerArray.

The reason you might want sortPartInline is if you have a...
Forum: Includes 19/09/2016, 10:18 AM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Don't use SetPlayerHealth in OnPlayerDamage...
Forum: Includes 18/09/2016, 10:48 AM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

That is because RemoveBuilding causes lag at 0, 0, 0. This include uses RemoveBuilding to remove vending machines. If you do not wish to have that functionality, you can so this:

#define...
Forum: Discussion 26/08/2016, 02:46 PM
Replies: 46
Views: 8,888
Posted By Slice
Re: Tiny But Super Optimizations

You do know the BREAK opcode is only generated when compiling with -d(1-3)? Telling people to use -d0 for production rather than make their code a giant mess is probably a good thing, it would also...
Forum: Includes 23/08/2016, 01:09 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Compile with "#define WC_DEBUG true" before including weapon-config.


Show me your OnPlayerDeath.
Forum: Includes 22/08/2016, 10:10 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Do you use custom fall damage? Do you use crashes.asi?

Install crashdetect (https://github.com/Zeex/samp-plugin-crashdetect/releases) to see more information about errors in the server.
Forum: Includes 22/08/2016, 10:08 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Show me your OnPlayerDamage function. Also your includes.
Forum: Includes 22/08/2016, 05:13 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

@airblog: 1. Remove the CallLocalFunction code. 2. Show me OnPlayerDamage. My first guess is you use "issuerid" before checking if it's INVALID_PLAYER_ID.

@ajwar: What other includes do you have?...
Forum: Includes 22/08/2016, 11:37 AM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Search your include files for OnPlayerGiveDamage. What do you find?
Forum: Includes 22/08/2016, 12:07 AM
Replies: 11
Views: 4,204
Posted By Slice
Re: inline-sort.inc - The solution to all your sorting needs

@Bradley7: Yeah that's a good idea. YSI has another thing called PlayerArray.

@ball: It's more convenient, but the speed is similar.
Forum: Includes 21/08/2016, 09:11 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Include weapon-config before the other things.



Which textdraw? When? Do you have a screenshot? I can't help you from that vague description.
Forum: Includes 21/08/2016, 12:10 PM
Replies: 845
Views: 167,355
Posted By Slice
Forum: Includes 20/08/2016, 12:16 AM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
if(weapon == 34) amount = 0.0; // Removes sniper damage.
return 1;
}
This does not work. 0.0 will kill the...
Forum: Includes 19/08/2016, 11:14 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

You can use SetPlayerHealth, just not inside OnPlayerDamage. Also IssueDamage.
Forum: Includes 19/08/2016, 10:11 PM
Replies: 845
Views: 167,355
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Don't use SetPlayerHealth inside OnPlayerDamage!!

You can modify "amount". If you set amount to 0.0, it will kill the player.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:47 AM.


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