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: Variable™
Forum: Server Advertisements 11/07/2020, 04:40 AM
Replies: 0
Views: 127
Posted By Variable™
Flowers Legacy SWAT vs Terrorists

https://camo.githubusercontent.com/1dd072707445bd569e7edbc298b750fe9459be1b/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f69636f6e732f3433363732333338313138323932323735372f32393437366532623236...
Forum: Scripting Help 12/06/2020, 11:12 AM
Replies: 10
Views: 237
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: 228
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: 228
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: 228
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: 237
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: 237
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: 237
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: 5
Views: 636
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: 1,998
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: 5
Views: 636
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: 1,998
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: 147
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: 224
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: 147
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: 147
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: 146
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: 224
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: 155
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...
Forum: Scripting Help 31/05/2020, 02:11 AM
Replies: 6
Views: 155
Posted By Variable™
Re: Spawn menu shows even after death

Ok. return false in your current code.

EDIT: make sure to manually set the spawn info beforehand.
https://wiki.sa-mp.com/wiki/SetSpawnInfo
Forum: Scripting Help 31/05/2020, 01:56 AM
Replies: 6
Views: 155
Posted By Variable™
Re: Spawn menu shows even after death

I'm assuming you want to skip the regular selection, but are you using weapon-config or other includes that use this callback (i.e. anti-cheat?)

I think you can trying to set...
Forum: Scripting Help 30/05/2020, 06:54 PM
Replies: 5
Views: 176
Posted By Variable™
Re: warning 224: indeterminate array size in "sizeof" expression (symbol "max_len")

You can manually specify an array size for the array 'text'.

stock GetMentiones(playerid,text[],...

Becomes

stock GetMentiones(playerid,text[128],...

OR
Forum: Scripting Help 29/05/2020, 12:35 PM
Replies: 2
Views: 102
Posted By Variable™
Re: What's wrong with the loop?

If I get it correctly, you want items to be added up to the same slot in case they are the same type, but instead they are added to other slots instead of being added to the same slot?

If so, you...
Forum: Scripting Help 29/05/2020, 09:21 AM
Replies: 5
Views: 197
Posted By Variable™
Re: Code.

Ah alright I didn't read the question, you can still use the same trick though. Instead of creating two strings, use one and format it to what you want first, then set it as the textdraw string, then...
Forum: Scripting Help 29/05/2020, 09:16 AM
Replies: 5
Views: 197
Posted By Variable™
Re: Code.

No...

Here's an idea
new string[15];
format(string, sizeof(string), "something"); //somewhere
format(string, sizeof(string), "%s else", string); //somewhere else
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 06:51 PM.


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