Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Shadow
Server & Plugin Updates / Re: Plugin Update Released (2018-07-09)
« on September 10th, 2018, 03:56 PM »
I just searched for your problem on google @Yidals @Hendrix @=TRC=Kelvin  and this came up:
Snippet Showroom / Re: Basic Login/Registeration System
« on September 7th, 2018, 06:00 AM »
Quote from Xmair on August 29th, 2018, 07:17 AM
Why do you use a custom encryption method?
It's not a 'custom encryption', nor an 'encryption'.
It's the SHA-256 hashing (one way function) algorithm but implemented in squirrel (still, should use the hashing plugin instead.)
Scripting and Server Management / Re: how to spawn a random vehicle
« on August 11th, 2018, 03:14 PM »
what is the issue..?
Scripting and Server Management / Re: how to spawn a random vehicle
« on August 11th, 2018, 02:43 PM »
Code: [Select]
global_modelArray<- [];

function getRandomVehicle()
       srand(time()); // ?

       if(global_modelArray.size() != 0)
             for( local i = 0; i < MAX_VEHICLES; ++i )
                        if( FindVehicle(i) )
                                  if( global_modelArray.find(FindVehicle(i).Model) == null )

        local index = LOWEST_MODEL_COUNT + rand() % (MAX_MODEL_COUNT - LOWEST_MODEL_COUNT);

        while(global_modelArray.find(index) != NULL) // infinite loop if you have every type of model
                  index = LOWEST_MODEL_COUNT + rand() % (MAX_MODEL_COUNT - LOWEST_MODEL_COUNT);

        return index;

not sure if it works or not but should be a good pseudocode
Server & Plugin Updates / Re: Plugin Update Released (2018-07-09)
« on August 11th, 2018, 01:41 PM »
uname -a
Support / Re: Error loading servers (used "Run as administrator")
« on July 27th, 2018, 06:53 PM »
I know this does not benefit your problem, but I find it a very good advice: Don't run processes that communicate with the internet as administrator unless you have no data that could be affected, you're basically giving a process that you don't trust lots of privileges to potentially mess up your computer. Your server should need nothing more than read/write in the local directory, network access and (perhaps) registry read/write.
Client Updates / Re: Client Update for 0.4.6 Released (2018-06-25)
« on June 26th, 2018, 01:04 PM »
Quote from Xmair on June 25th, 2018, 08:04 PM
What about this tho?
Sometimes if you switch to fist from a wep, that happens ^
off-topic: you can just drag the windows in the far left&right corners and they'll automatically construct a 2-window middle-form.
Quote from krystianoo on June 24th, 2018, 04:52 PM
Hello, (pardon the aggressive tone)

Why can I not change game_sensitivity multiple times without restarting the game?

Do you not understand that by restricting changes to game_sensitivity you are only harming legal players?

Since I'm unable to change my sensitivity the way it was intended for 3+ years in VCMP 0.4 (by ways of commands made by the developers) I will resort to gray area methods such as third party programs to achieve this now such as tens of other players will, or have already done so by now.

So congratulations, you've achieved nothing with this except for practically fucking over newbies who have no clue how to circumvent this "solution" and legit players.
Maybe you should PAY some respect to those who have helped create what you find entertaining.
Client Updates / Re: Client Update 0.4.6 Released (2018-06-23)
« on June 24th, 2018, 04:48 PM »
Quote from Radon on June 24th, 2018, 02:55 PM
What could be the reason the installer could get detected as an malware? Wouldn't be from the compression thingy? If it is, I don't find anything problematic with the installer taking just 5-6MBs or so.
Probably because some antivirus sees it as a dropper of some sort. It would also be of use if you could post the reports from the AVs.
Bugs and Crashes / [BUG] Re: IRC bots behaving badly
« on June 23rd, 2018, 09:09 PM »
It is probably an issue in the newer squirrel builds related to character processing. IRC should die anyway.
General Discussion / [Request] Re: Createobject and createvehicle limit increase
« on June 14th, 2018, 12:43 AM »
@Stormeus , while you are at it, please update the squirrel version to the latest available on both the client and the server. There are some funky issues waiting to be abused :)
General Discussion / Re: Fireside chat: the future of VC:MP
« on June 10th, 2018, 07:31 PM »
Quote from Stormeus on June 10th, 2018, 07:25 PM
We could definitely make use of an active beta testing team to better polish our releases though.
It would be nice if the beta testers had something to test though. :P
Client Scripting / [function] Re: qGUI
« on June 10th, 2018, 02:04 PM »
@Sebastian The thing is, you are still using bytes for no reason when calling the constructor. If squirrel emulates C/C++, then you are pushing 5 bytes onto the stack ('l' 'a' 'b' 'e' 'l') and calling the constructor. I don't know if you can have bytes on squirrel but even an integer (4 bytes) would be more optimal for the task.

And the parameter checking is just a recommandation, of course you are free to do what you want because it is your release but I think it would be best to add some nice checks.
Client Scripting / [function] Re: qGUI
« on June 10th, 2018, 02:20 AM »
A few considerations to be made, I like your idea but I think you could improve your implementation.

For starters, you should check the type of the values that you're dealing with because that can go south really fast (if you don't pass a vector as the first argument, for example). Same applies for type, size, rgb.

Then, why do you need a string for the type? Sorry if this bothers you but you could save some bytes by just declaring an enum. I don't know squirrel anymore but I guess something like this could work?

Code: [Select]
enum GUI_Types

Anyway, great job with the tiny 'library' but it's sad that this has to be shipped to every user's PC. Was looking for a more standardized approach from VC:MP :P

Maybe your intention was to negate the return value of InPoly, as in, you meant to add a '!' before it. Just a thought, I can't really understandn why your code _doesn't work_ because you provided no information...