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: saffierr
Forum: Scripting Help 09/09/2019, 10:30 PM
Replies: 4
Views: 175
Posted By saffierr
Re: A Command..

If you would read what we've said...
Use 'MoneyForBail[id]' instead of 'MoneyForBail[playerid]'.
Forum: Scripting Help 09/09/2019, 02:07 AM
Replies: 4
Views: 175
Posted By saffierr
Re: A Command..

You might as well put this code under the 'new ....;' definitions.
MoneyForBail[playerid] = random(7000) + 1000;
MoneyFor[playerid] = MoneyForBail[playerid];
Use 'MoneyForBail[id]' as CheezeIt...
Forum: Scripting Help 09/09/2019, 02:03 AM
Replies: 2
Views: 121
Posted By saffierr
Re: A better way to create a regstriation system?

A better way in my opinion would be using MySQL Database bro.
SQL is quite easy to learn and use.
And it's very organizing for your entire script to store and get data from.
Forum: Gamemode Scripts 03/07/2019, 12:28 AM
Replies: 58
Views: 11,421
Posted By saffierr
Re: eLg Clan's Freeroam/Roleplay

Wow, wow and another Wow!
Much respect, I have been a part of the server from almost the beginning and have been through all the changes and improvements of the gamemode over the years.
I have been...
Forum: Scripting Help 06/01/2019, 11:06 PM
Replies: 1
Views: 136
Posted By saffierr
Re: doesn't save vehicles mysql

Check your savevehs(); function.
You save GetVehicleID(vehicleid); as a string, use %i
Forum: Scripting Help 30/05/2018, 03:57 PM
Replies: 10
Views: 534
Posted By saffierr
Re: Help: Change Team at Die

As I said your code needs to be rewritten.
And I just gave you a slight example, not expecting it to work, just to give you an idea.
Forum: Scripting Help 30/05/2018, 01:06 PM
Replies: 10
Views: 534
Posted By saffierr
Re: Help: Change Team at Die

For example, assign variable A to a player.
new A[MAX_PLAYERS];
A[playerid] = bla bla;
then under OnPlayerDeath
if(A[playerid] == blabla) // code
Forum: Scripting Help 30/05/2018, 12:59 PM
Replies: 10
Views: 534
Posted By saffierr
Re: Help: Change Team at Die

But you never assign any variable to a player, so how do you expect the script to put a player in the same team he used to be?
From my point of view that entire script should be rewritten.
Forum: Scripting Help 30/05/2018, 12:46 PM
Replies: 10
Views: 534
Posted By saffierr
Re: Help: Change Team at Die

Where do you assign the A and B variables to the player?
Forum: Scripting Help 30/05/2018, 12:39 PM
Replies: 10
Views: 534
Posted By saffierr
Re: Help: Change Team at Die

Show your timers.
And you might want to assign the variable A and B with [MAX_PLAYERS];.
if(A[playerid]).
Forum: Scripting Help 24/05/2018, 05:13 PM
Replies: 6
Views: 461
Posted By saffierr
Re: Help me please.

It depends on what saving system your script uses.
Although it's quite user unfriendly if you'd ask me.
Forum: Scripting Help 18/04/2018, 09:25 AM
Replies: 2
Views: 232
Posted By saffierr
Re: How can I check if there is a specific string in a .txt file?

Check the file where the player's inputtext is getting stored.
Then check if the player's inputtext matches one of the stored inputtext from the file, if yes return error.
Hope you get it.
Forum: Scripting Help 19/02/2018, 08:45 AM
Replies: 7
Views: 359
Posted By saffierr
Re: Teleport command

Remove or comment your other 'drift2' command and paste the one I made anywhere outside a callback.
Forum: Scripting Help 19/02/2018, 08:31 AM
Replies: 7
Views: 359
Posted By saffierr
Re: Teleport command

CMD:drift2(playerid, params[])
{
new vid = GetPlayerVehicleID(playerid);
SetPlayerPos(); // set player pos
SetPlayerVirtualWorld(); // set player vw
SetPlayerInterior(); // set...
Forum: Scripting Help 31/01/2018, 02:04 PM
Replies: 3
Views: 287
Posted By saffierr
Re: please solve this error 001

if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT || GetPVarInt(playerid, "Injured") == 1)
Forum: Tools and Files 17/08/2017, 03:38 AM
Replies: 21
[Tool/Web/Other] Server Control Panel V1
Views: 4,781
Posted By saffierr
Re: Server Control Panel V1

Wauw, very nice...
Actually the first time I've seen such thing, keep it up!
Forum: Scripting Help 15/08/2017, 10:28 AM
Replies: 9
Views: 1,188
Posted By saffierr
Re: How do i fix this??

Show your code
Forum: Scripting Help 15/08/2017, 07:00 AM
Replies: 4
Views: 267
Posted By saffierr
Re: HELP ME PLEASE!

I hope the command does even exist, right?
Forum: Scripting Help 15/08/2017, 02:44 AM
Replies: 10
Views: 553
Posted By saffierr
Re: Alternative Accounts

I'd say; Create a command that checks a certain IP address and then check if there are more than one accounts registered on the same IP Address.
Forum: Scripting Help 14/08/2017, 12:49 AM
Replies: 5
Views: 600
Posted By saffierr
Re: mysql connection already exists

Wauw, that simple thing fixed it, thanks.
Forum: Scripting Help 14/08/2017, 12:20 AM
Replies: 5
Views: 600
Posted By saffierr
Re: mysql connection already exists

Yep, I am not connecting twice from the same script, once each script.

Script 1:

new mysql;
#define MYSQL_H "localhost"
#define MYSQL_U "anol_4voetba"
#define MYSQL_D "zanol_4voetba2"...
Forum: Scripting Help 13/08/2017, 09:09 PM
Replies: 5
Views: 600
Posted By saffierr
mysql connection already exists

I have recently opened a second server on the same host with the same "mysql_host" and "mysql_user" name.
Ever since I have the second server it says that the mysql_connection already exists in the...
Forum: Scripting Help 11/08/2017, 12:10 PM
Replies: 1
Views: 316
Posted By saffierr
Re: DIALOG_STYLE_

What? I don't get the question?
Forum: Scripting Help 10/08/2017, 07:30 PM
Replies: 5
Views: 316
Posted By saffierr
Re: Is ok ?

Just save it when player disconnects? Duhh
Forum: Scripting Help 09/08/2017, 12:53 AM
Replies: 5
Views: 346
Posted By saffierr
Re: Banlist

Check my code below, it should fix the bug.
if(!CodeIsProvided) return SCM(playerid, RED, "Show us your code first !!!");
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 08:17 PM.


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