SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 125
Search took 0.01 seconds.
Search: Posts Made By: [FMJ]PowerSurge
Forum: Scripting Help 14/06/2020, 12:18 PM
Replies: 21
Views: 519
Posted By [FMJ]PowerSurge
Re: Problem houses

AUTO_INCREMENT in MySQL starts from 1, not 0. This may be the cause of your issues.
Forum: Scripting Help 14/06/2020, 12:13 PM
Replies: 8
Views: 243
Posted By [FMJ]PowerSurge
Re: Problem with variable

Could you share the function where the duel begins?
Forum: Scripting Help 06/06/2020, 07:18 PM
Replies: 3
Views: 162
Posted By [FMJ]PowerSurge
Re: Weird Spawn Bug, Lot of code.

Try removing SpawnPlayer(playerid) and ClearAnimations(playerid) from OnPlayerDeath. When they respawn their animations are cleared and they call OnPlayerSpawn anyway, so it's just useless. I don't...
Forum: Scripting Help 02/06/2020, 11:21 PM
Replies: 26
Views: 759
Posted By [FMJ]PowerSurge
Re: Server is crashing

That means you have crashdetect.so loaded, yes. But do you have crashdetect.inc loaded with #include <crashdetect> in your script? If you add the #include line it will give you a better log that...
Forum: Scripting Help 01/06/2020, 10:49 PM
Replies: 26
Views: 759
Posted By [FMJ]PowerSurge
Re: Server is crashing

If you have crashdetect.so loaded, do you have #include <crashdetect> in your script? If not, add it. It should really help with reading errors.
Forum: Scripting Help 01/06/2020, 08:24 PM
Replies: 11
Views: 365
Posted By [FMJ]PowerSurge
Re: Const Correctness with Pawno Compiler version 3.10.10

A lot of includes weren't written using this compiler so there's going to be minimal compatibility, especially with older plugins. Changing the natives to include const may mess up compatibility with...
Forum: Scripting Help 01/06/2020, 08:01 PM
Replies: 4
Views: 164
Posted By [FMJ]PowerSurge
Re: Help.

If you weren't aware, 'e' in sscanf2 is now enum.

enum
E_DATA
{
E_DATA_C,
Float:E_DATA_X,
E_DATA_NAME[32],
E_DATA_Z
}
Forum: Scripting Help 01/06/2020, 07:57 PM
Replies: 1
Views: 110
Posted By [FMJ]PowerSurge
Re: Help error 045 buffer

Use the "e" specifier for sscanf.

sscanf(buffer,...
Forum: Scripting Help 01/06/2020, 07:50 PM
Replies: 3
Views: 131
Posted By [FMJ]PowerSurge
Re: Declaring variable inside if-statement

Nevermind, I just thought of a good use:
new var = random(2);
new var2;
if(var == 1 && (var2 = -1) || var == 2 && (var2 = 1)) {
//if 'var' is 1 then 'var2' will equal -1
//if 'var' is 2...
Forum: Scripting Help 01/06/2020, 07:43 PM
Replies: 3
Views: 131
Posted By [FMJ]PowerSurge
Declaring variable inside if-statement

I recently stumbled upon a filterscript that use something this effect:
new var, var2;
if(var == 0 && (var2 = 1)) {
// code here
}
What is the benefit, or an example of using this method,...
Forum: Scripting Help 07/05/2020, 09:59 PM
Replies: 4
Views: 122
Posted By [FMJ]PowerSurge
Re: How are the little grey squares/triangles for empty vehicles created?

I don't mean to cause any offence but it seems you didn't read my post at all.

I know what they are, I want to use a memory hack (or hopefully a plugin like Pawn.Rak.Net for RPC funcs) to disable...
Forum: Scripting Help 07/05/2020, 09:38 PM
Replies: 4
Views: 122
Posted By [FMJ]PowerSurge
How are the little grey squares/triangles for empty vehicles created?

What I mean is these little bastards:
https://i.imgur.com/d6FWgfR.png

I'm hoping that I can find where they're created so that I can try and disable them - I've trawled through both...
Forum: Tutorials 04/05/2020, 02:57 AM
Replies: 91
Views: 26,932
Posted By [FMJ]PowerSurge
Re: Stop the abuse of stock!

So what's your reasoning for this?

Yeah, it's not required, but it suppresses errors and is not added to the compiled code if it's never called.

If I'm writing a large script with many...
Forum: Scripting Help 23/01/2016, 02:30 PM
Replies: 1
Views: 301
Posted By [FMJ]PowerSurge
Re: Edit cursor won't show up?

BoneID2 should not be 0, set it to 1 on OnPlayerSpawn or something
Forum: Scripting Help 16/05/2015, 04:16 PM
Replies: 5
Views: 951
Posted By [FMJ]PowerSurge
Re: Tag mismatch on a float?

Yup, all tag mismatches are gone, time to test it out! Thanks again! :D

[12:23:07] crackgprice = 4901 / 4901.479980 / 101
[12:23:07] potgprice = 80 / 80.000000 / 250
[12:23:07]...
Forum: Scripting Help 16/05/2015, 04:10 PM
Replies: 5
Views: 951
Posted By [FMJ]PowerSurge
Re: Tag mismatch on a float?

Will try that, I wouldn't think that'd be a problem since I'm not raising any floats to a power (matamount, potamount, crackamount, TaxValue and 10 are all integers).

Thanks, will test it out now.
Forum: Scripting Help 16/05/2015, 03:54 PM
Replies: 1
Views: 496
Posted By [FMJ]PowerSurge
Re: Pawno Errors

Is it supposed to be gTeam[i] == ARMY? Square brackets, not rounded.
Forum: Scripting Help 16/05/2015, 03:52 PM
Replies: 6
Views: 416
Posted By [FMJ]PowerSurge
Re: :(help me

Change the first line to:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
and change all 'textid' to 'clickedid', or add
new Text:textid = clickedid;
Forum: Scripting Help 16/05/2015, 03:50 PM
Replies: 35
Views: 1,607
Posted By [FMJ]PowerSurge
Re: 2 Command Problem [+REP]

For the first one, you have
WHERE Name = '%e' AND pAccountLock
Not sure if the %e is intentional here.

Do you have any SQL logs?
Forum: Scripting Help 16/05/2015, 03:46 PM
Replies: 6
Views: 1,110
Posted By [FMJ]PowerSurge
Re: Script[gamemodes/cnr.amx]: Run time error 19: "File or function is not found"

You're missing the SQL plugin:
[17:48:44] Loading plugin: mysql.so
[17:48:44] Failed (plugins/mysql.so: invalid ELF header)
[17:48:44] Loading plugin: libmysqlclient.so
[17:48:44] Failed...
Forum: Scripting Help 16/05/2015, 03:39 PM
Replies: 5
Views: 951
Posted By [FMJ]PowerSurge
Tag mismatch on a float?

I'm getting these really screwy errors and nothing I can think of has been able to help out:
C:\Users\joeytucker\Desktop\SAMP037svr\gamemodes\IRP.pwn(23135) : warning 213: tag mismatch...
Forum: Client Support 04/12/2014, 01:42 PM
Replies: 8
Views: 725
Posted By [FMJ]PowerSurge
Re: Player looks like "lump"

It happens when a car blows up and the players don't sync up properly. What you see on your screen is the animation of a dead driver in singleplayer, however on his screen he's walking fine.

I'm...
Forum: General 14/03/2014, 03:35 PM
Replies: 35
Views: 4,117
Posted By [FMJ]PowerSurge
Re: The RolePlay Scene

Sounds ambitious but I know you, Ray, and especially on Lawless Roleplay you certainly didn't enjoy losing your power and you were even worse when you started your own server and it failed.

But,...
Forum: Scripting Help 08/02/2014, 06:21 PM
Replies: 5
Views: 1,575
Posted By [FMJ]PowerSurge
Re: error 017: undefined symbol

I commented out my changes and it just stopped compiling. It's a good job I took a backup! Thanks anyway for the suggestions.
Forum: Scripting Help 08/02/2014, 05:49 PM
Replies: 5
Views: 1,575
Posted By [FMJ]PowerSurge
Re: error 017: undefined symbol

I thought it would be a missing bracket but I go through all code above it (which is only defines and news) and I can't find any. As for the last changes, they are all below the first error so I...
Showing results 1 to 25 of 125

 

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


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