
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.

1
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: https://github.com/Microsoft/napajs/issues/93#issuecomment-338504478
http://bfy.tw/JoPb
http://bfy.tw/JoPb
2
Snippet Showroom / Re: Basic Login/Registeration System
« on September 7th, 2018, 06:00 AM »Why do you use a custom encryption method?
It's the SHA-256 hashing (one way function) algorithm but implemented in squirrel (still, should use the hashing plugin instead.)
3
Scripting and Server Management / Re: how to spawn a random vehicle
« on August 11th, 2018, 03:14 PM »
what is the issue..?
4
Scripting and Server Management / Re: how to spawn a random vehicle
« on August 11th, 2018, 02:43 PM »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 )
global_modelArray.push(FindVehicle(i).Model);
}
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
5
Server & Plugin Updates / Re: Plugin Update Released (2018-07-09)
« on August 11th, 2018, 01:41 PM »
uname -a
6
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.
7
Client Updates / Re: Client Update for 0.4.6 Released (2018-06-25)
« on June 26th, 2018, 01:04 PM »What about this tho?
https://youtu.be/wrhOXj21FmI
Sometimes if you switch to fist from a wep, that happens ^
8
General Discussion / Re: "Changes to this setting will take effect next time you start the game."
« on June 24th, 2018, 06:35 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.
9
Client Updates / Re: Client Update 0.4.6 Released (2018-06-23)
« on June 24th, 2018, 04:48 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.
10
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.
11
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 :)
12
General Discussion / Re: Fireside chat: the future of VC:MP
« on June 10th, 2018, 07:31 PM »We could definitely make use of an active beta testing team to better polish our releases though.
13
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.
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.
14
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]
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
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?
enum GUI_Types
{
GUI_WINDOW,
GUI_LABEL,
GUI_EDITBOX,
GUI_CHECKBOX
}
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
15
Scripting and Server Management / Re: disqualified from the event
« on June 6th, 2018, 09:43 PM »
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...