SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Variable™
Forum: Includes 28/07/2020, 07:50 AM
Replies: 9
Views: 495
Posted By Variable™
Re: Advanced Model Selection Menu (eSelection)

I like how it looks like, will probably take a look at the code soon. :)
Forum: Scripting Help 18/07/2020, 06:19 AM
Replies: 2
Views: 165
Posted By Variable™
Re: sql 41-4 // load int, float or string

You can use cache_get_value directly as well.
Forum: Scripting Help 17/07/2020, 11:04 AM
Replies: 6
Views: 234
Posted By Variable™
Re: Should I update MySQL plugin to R40 above?

Yes. Outdated versions of anything are not recommended in production. Just think of all the possible vulnerabilities or critical bugs you might encounter. You can't convert everything in a few hours,...
Forum: Server Support 17/07/2020, 11:01 AM
Replies: 3
Views: 222
Posted By Variable™
Re: MySQL Connection

Check your privileges (user is valid, can access database, etc.)

If your supplied credentials are OK, consider running

FLUSH PRIVILEGES;


on your server. If this doesn't solve it, can try...
Forum: Gamemode Scripts 17/07/2020, 01:07 AM
Replies: 9
Views: 1,378
Posted By Variable™
Re: Legacy SWAT vs Terrorists

Thanks guys.



You're wrong. :)
Forum: Everything and Nothing 16/07/2020, 01:31 PM
Replies: 8
Views: 883
Posted By Variable™
Re: Lost my thumb and job down to being a good Samaritan..

I hope you get over this incident and begin to live normally once more.
Forum: Gamemode Scripts 16/07/2020, 12:22 PM
Replies: 9
Views: 1,378
Posted By Variable™
Flowers Legacy SWAT vs Terrorists

legacy-tdm
Repository: https://github.com/h2o-deuteron/legacy-tdm

https://cdn.discordapp.com/icons/436723381182922757/29476e2b2615a330d21ade0b331f5550.webp?size=128 (https://h2omultiplayer.com)
...
Forum: Scripting Help 12/06/2020, 11:12 AM
Replies: 10
Views: 264
Posted By Variable™
Re: Problem with virtual worlds

Could be related to how you handle virtual worlds for other rounds, if it worked fine the first round, then make sure duels are not mixed between different opponents and make sure you're not...
Forum: Scripting Help 12/06/2020, 10:39 AM
Replies: 10
Views: 244
Posted By Variable™
Re: Block/disable commands

New comment: Use PVars

I didn't read that your DM system is a filterscript, in that case using the methods above shouldn't be efficient, and relying on virtual worlds may not always be the best to...
Forum: Scripting Help 12/06/2020, 09:30 AM
Replies: 10
Views: 244
Posted By Variable™
Re: Block/disable commands

To apply the idea using virtual worlds, simply assign a special virtual world for each mode separately, like set the player's virtual world in death-match to a value that differs from the main...
Forum: Scripting Help 12/06/2020, 08:36 AM
Replies: 10
Views: 244
Posted By Variable™
Re: Block/disable commands

You can simply just use your variables to check whether player is in DM or not.

Now you have the variable pInDM and the value is -1 by default for example. Go to the commands you want to enable...
Forum: Scripting Help 12/06/2020, 03:43 AM
Replies: 10
Views: 264
Posted By Variable™
Re: Problem with virtual worlds

Where do you call this function?

Make sure you don't have anything else that changes the virtual world of the player, or you would experience issues.
Forum: Scripting Help 12/06/2020, 01:03 AM
Replies: 10
Views: 264
Posted By Variable™
Re: Problem with virtual worlds

alright, in your code

SetPlayerVirtualWorld(playerid,playerid);

This sets the player's virtual world to THEIR own ID, that means each player should be in a different virtual world.

To fix...
Forum: Scripting Help 12/06/2020, 12:37 AM
Replies: 10
Views: 264
Posted By Variable™
Re: Problem with virtual worlds

set a base number for duel virtual worlds, like 1000 will be the base number, and pick one ID from one of the participants and add this ID number to the 1000 base. i.e. player id 1 duels player id 2...
Forum: Includes 11/06/2020, 08:14 AM
Replies: 6
Views: 866
Posted By Variable™
Re: [MySQL R41-2] vlang - Create Messages for Multiple Languages

Thanks for all your opinions!

Build 2 - Beta Release

- Revamped the code
- Lesser use of strcmp now (not used to return messages anymore)
- Using gvar to facilitate the process of handling...
Forum: Tools and Files 10/06/2020, 04:23 AM
Replies: 17
[Tool/Web/Other] CJ Discord Bot
Views: 2,316
Posted By Variable™
Re: CJ Discord Bot

Okay, uh, well... I don't want to advertise other discord bots, especially that if you look for it you will already find it. But basically you can find many similar bots here...
Forum: Includes 09/06/2020, 10:03 PM
Replies: 6
Views: 866
Posted By Variable™
Flowers [MySQL R41-2] vlang - Create Messages for Multiple Languages

vlang
Build 2 - Beta Release - Last Update: 11/6/2020

Sometimes I wanted to translate my game script in multiple languages and for all the features I have, not for client messages, game texts or...
Forum: Tools and Files 08/06/2020, 10:43 PM
Replies: 17
[Tool/Web/Other] CJ Discord Bot
Views: 2,316
Posted By Variable™
Re: CJ Discord Bot

You want to make a premium version out of something that is pretty simple and has alternatives, you don't even need a bot for it and there are many bots I saw that already are able to query servers...
Forum: Scripting Help 03/06/2020, 07:43 AM
Replies: 6
Views: 161
Posted By Variable™
Re: Question about further MySQL Optimization

You can update players data automatically using a timer (or a task if you use YSI) every 5-7 minutes and it wouldn't hurt at all.
Forum: Scripting Help 03/06/2020, 07:37 AM
Replies: 12
Views: 257
Posted By Variable™
Re: another backtrace

In your code you are using "id" to refer to the player that this disconnected player was duelling but you are not considering whether the id value is -1 (the value you're resetting it to) or not. You...
Forum: Scripting Help 03/06/2020, 07:15 AM
Replies: 6
Views: 161
Posted By Variable™
Re: Question about further MySQL Optimization

mysql_tquery is basically a threaded MySQL query which shouldn't hang the main thread that the SA-MP server runs on.

Think about it, if you update the kill count in the database for every player,...
Forum: Scripting Help 03/06/2020, 06:52 AM
Replies: 6
Views: 161
Posted By Variable™
Re: Question about further MySQL Optimization

Are you experiencing performance trouble doing it this way? I'd say that having tables for each system separately and updating them when needed is a better idea, and is safer when it comes to facing...
Forum: Server Support 03/06/2020, 02:33 AM
Replies: 1
Views: 252
Posted By Variable™
Re: Game mod content deleted

I don't think you can. But I can advise you to use Atom, Sublime Text 3 or VSCode. They automatically save your code so that if the editor or your system unexpectedly shut down or crashed, you...
Forum: Scripting Help 03/06/2020, 12:04 AM
Replies: 12
Views: 257
Posted By Variable™
Re: another backtrace

Are you resetting the PlayerInfo array when the player disconnects? If so, make sure to do the duel check before you reset it, otherwise I assume you set the value to -1 before you actually do your...
Forum: Scripting Help 31/05/2020, 02:32 AM
Replies: 6
Views: 166
Posted By Variable™
Re: Spawn menu shows even after death

Alright I guess you should try the first solution before saying that timers are bad, because actually they aren't. Small timers that are intended to work on specific conditions to get things to work...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:22 PM.


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