SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 133
Search took 0.01 seconds.
Search: Posts Made By: Flamehaze7
Forum: Scripting Help 12/08/2019, 07:30 PM
Replies: 3
Views: 126
Posted By Flamehaze7
Re: sscanf warning: Format specifier does not match parameter count

It's just that you are defining "seek" but never using it, if you remove it from your code you'll see you get no warnings
Forum: Scripting Help 12/08/2019, 11:10 AM
Replies: 1
Views: 78
Posted By Flamehaze7
Re: sscanf error: System not initialised.

Update your sscanf plugin and include, plus check if you're including it in the right way in your gamemode
Forum: Scripting Help 10/08/2019, 02:21 PM
Replies: 2
Views: 126
Posted By Flamehaze7
Re: Disabling command for attacked player

new bool:PlayerTookDMG[MAX_PLAYERS];

Inside OnPlayerTakeDamage

PlayerTookDMG[playerid] = true;
SetTimerEx("YourFuncName", 10000, false, "i", playerid);

Just provide a name instead of...
Forum: Scripting Help 10/08/2019, 01:13 PM
Replies: 2
Views: 97
Posted By Flamehaze7
Re: Run time error 4: "Array index out of bounds"

Shouldn't it be: PhoneInfo[playerid][ListedContacts[playerid][contactID]] like this?
Forum: Scripting Help 09/08/2019, 05:38 PM
Replies: 7
Views: 220
Posted By Flamehaze7
Re: Cmd info

Yeah but it's a string, once you space you get to the integer argument, that's why it doesn't work
Forum: Scripting Help 09/08/2019, 05:05 PM
Replies: 7
Views: 220
Posted By Flamehaze7
Re: Cmd info

Because you're using s[32]dd where s is a string, d is an integer and you can't write characters inside an integer, it only accepts numbers.
Forum: Scripting Help 08/08/2019, 11:39 PM
Replies: 8
Views: 226
Posted By Flamehaze7
Re: Max Player Vehicles

That's true, he can try by himself first, if he needs further help he can ask here.
Forum: Scripting Help 08/08/2019, 11:31 PM
Replies: 8
Views: 226
Posted By Flamehaze7
Re: Max Player Vehicles

example:
#define MAX_PLAYER_VEHICLES 10
#define VIP_MAX_PLAYER_VEHICLES 20
Forum: Scripting Help 08/08/2019, 02:11 AM
Replies: 3
Views: 1,008
Posted By Flamehaze7
Re: Bus job

This might be a problem with Bus id, it depends how you defined it, you can do it for every X bus or you can do for every bus in the game, just check your code.
Forum: Scripting Help 08/08/2019, 02:06 AM
Replies: 3
Views: 1,008
Posted By Flamehaze7
Re: Bus job

You have to define a vehicle id to be the "Job Bus" like:

new Bus = CreateVehicle(blablabla....)

Or you can simply take the bus ID from the wiki and inside OnPlayerEnterVehicle check whenever a...
Forum: Scripting Help 08/08/2019, 01:47 AM
Replies: 3
Views: 110
Posted By Flamehaze7
Re: What can be the prob?

Which code is on line 40181?
Forum: Scripting Help 06/08/2019, 10:59 AM
Replies: 18
Views: 241
Posted By Flamehaze7
Re: Problem Death System

Never scripted for a Roleplay server but shouldn't you prevent the player from dying? Like when he gets to 20% of his HP, freeze him and apply an animation, if you let him die and then spawn again...
Forum: Scripting Help 04/08/2019, 01:49 PM
Replies: 13
Views: 596
Posted By Flamehaze7
Re: Spawn location help

Yeah, you have to specify it for every action you're working with, for example if you have an event system with a deathmatch, you'll have to specify where the player should spawn once he dies.

No...
Forum: Scripting Help 04/08/2019, 01:05 PM
Replies: 13
Views: 596
Posted By Flamehaze7
Re: Spawn location help

Try to put some prints inside your code, like when you die and spawn, when you spawn from just connecting and so on.
Forum: Scripting Help 04/08/2019, 01:43 AM
Replies: 13
Views: 596
Posted By Flamehaze7
Re: Spawn location help

Just use OnPlayerSpawn anyway, if you wish to mantain your SetPlayerPos(playerid,positionx,positiony,position z); on the OnPlayerSpawn you can create a simple variable that holds the player id on top...
Forum: Scripting Help 02/08/2019, 10:49 PM
Replies: 3
Views: 125
Posted By Flamehaze7
Re: Crash on startup.

The plugins are probably broken or not the same version that your gamemode requires.

Meanwhile for the second issue on your FS, recompile again the script and restart the server, it's probably bad...
Forum: Scripting Help 01/08/2019, 01:35 AM
Replies: 5
Views: 219
Posted By Flamehaze7
Re: Is it safe to use one global string variable for all formatted messages?

You may be showing the wrong message with a global scope variable, so it's better to use a local scope variable instead of a global scope one.
Forum: Scripting Help 30/07/2019, 08:41 PM
Replies: 6
Views: 156
Posted By Flamehaze7
Re: Can't create pickup beyond certain co-ord fix?

You can use Create3DTextLabel it's a cool solution if you can't use pickups

https://wiki.sa-mp.com/wiki/Create3DTextLabel
Forum: Scripting Help 30/07/2019, 06:55 PM
Replies: 4
Views: 157
Posted By Flamehaze7
Re: warning 213: tag mismatch

If you're using a bool you don't have to specify the other condition, you can just put a simple else:


if(BonusMissao)
{
format(stringZCMD, sizeof(stringZCMD), "[BPR SERVER]Bonus De...
Forum: Scripting Help 30/07/2019, 06:51 PM
Replies: 6
Views: 156
Posted By Flamehaze7
Re: Can't create pickup beyond certain co-ord fix?

You can place the pickup as object and when the player touches the object it gets removed or use a dynamic checkpoint instead.
Forum: Scripting Help 30/07/2019, 06:25 PM
Replies: 6
Views: 157
Posted By Flamehaze7
Re: Help phpmyadmin no save

You need to put X inside ` so it will be `x` = somevalueIf it doesn't work check if you have everything in order and you didn't miss a single thing. Plus, log some values, like the position of the...
Forum: Scripting Help 30/07/2019, 06:15 PM
Replies: 4
Views: 176
Posted By Flamehaze7
Re: Does not connect to MySQL database

It depends if you're getting the "connection refused error" and where the script is trying to connect from.
If it's a remote connection you might need to bind a 0.0.0.0 IP address on your my.cnf...
Forum: Scripting Help 25/09/2018, 12:33 PM
Replies: 1
Views: 199
Posted By Flamehaze7
Re: How to set a specific NPC's skin?

Didn't understand well what you meant by "add one demonic NPC at a coordinate" so i'll just assume you want the first one to be at random coords

so:
new IsDemonicOne[MAX_PLAYERS];
new...
Forum: Scripting Help 21/09/2018, 10:53 AM
Replies: 9
Views: 460
Posted By Flamehaze7
Re: Command

if ((targetid = GetNumberOwner(number)))

to

if (targetid == GetNumberOwner(number))

By the way you should show us the entire code of "GetNumberOwner" and stuff like this since the code is a...
Forum: Scripting Help 01/02/2018, 02:37 PM
Replies: 7
Views: 681
Posted By Flamehaze7
Re: socket

sudo apt-get install openssl

sudo apt-get install libssl1.0.0
Showing results 1 to 25 of 133

 

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


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