Menu

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.

Show posts Menu

Messages - .

#1
Step 2 is not your concern. It's the job of the server owners to make that choice.

People will not use a unvalidated third-party plugin in their server.
#3
I mean. I'm a bit sad people are still struggling with official plugin knowing fully that there are a bunch of issues with it. But I'm just glad that you're are moving away from non-scalable traditional way of implementing this. Which is, using a bunch of if/else statements (or switch case) with the same code and duplicating the same parameter validation code (if any) all over the place.

So I'll take it. Is just good seeing grow out of that bad habit. Even if not for the best reason ;D
#4
You can also use a table to mimic this behavior. See tables and arrays manipulation.

// New empty table is now on top of the stack
sq_newtable(vm);
// -- X
sq_pushstring(vm, _SC("x"), -1); // Key (will be popped by sq_newslot)
sq_pushinteger(vm, 69); // Value (will be popped by sq_newslot)
sq_newslot(vm, -3, false); // table is 3 elements down the stack
// -- Y
sq_pushstring(vm, _SC("y"), -1); // Key (will be popped by sq_newslot)
sq_pushinteger(vm, 42); // Value (will be popped by sq_newslot)
sq_newslot(vm, -3, false); // table is 3 elements down the stack
// -- Z
sq_pushstring(vm, _SC("z"), -1); // Key (will be popped by sq_newslot)
sq_pushinteger(vm, 77); // Value (will be popped by sq_newslot)
sq_newslot(vm, -3, false); // table is 3 elements down the stack
// Specify that we're returing the object at the top of the stack (i.e. the table)
return 1;
#5
Community Plugins / Re: Whitelist plugin
Mar 02, 2022, 07:35 PM
Quote from: Xmair on Feb 26, 2022, 11:17 AM
Quote from: habi on Feb 26, 2022, 10:56 AMInclude every .h file inside main.h and at last including main.h in every .cpp.
.. what

He means there's a cyclical header dependency. Header A includes header B and header B includes header A.

Quote from: Athanatos on Mar 01, 2022, 06:21 AMI honestly don't remember, This compiles though.

What not null terminated C-strings are you talking about though?

You're probably using MSVC to compile. Well, MSVC compiles everything. Even broken or non-standard code. That's why I don't use it much. The moment you try to migrate to other compilers or platforms you'll see what "compiles everything" does to code.
#6
General Discussion / Re: [TOOL] Ipl Hide
Jan 23, 2022, 09:52 AM
Quote from: Kenneth Law on Jan 19, 2022, 02:04 AMSorry for the bump but I have difficulty downloading the tool. Could you please upload it again via some other sources or send the files directly to me? :'(
Great appreciation for it!

Sure, I moved it from Bitbucket to Github. Link: https://github.com/iSLC/iplhide/releases
#7
Quote from: Anish87 on Dec 27, 2020, 07:30 AM
Quote from: NewK on Apr 08, 2020, 08:46 PMIt would seem this (memory leak) can't be reproduced on a blank server with an empty script, which makes me think this is somehow related to some vcmp entity (player, vehicle, pickup, sphere, checkpoint, etc...) and sitting on the spawn screen. 

If anyone can reproduce it on a blank script let us know.
Well, I guess I am bumping into the topic unnecessarily but the memory leak happens only when there is other stuff in the server like when an entity's data is being saved in arrays/tables/classes...

This was beyond my scope to address (i assume. i didn't even bother).
#8
Quote from: Anish87 on Nov 19, 2020, 03:01 AM
Quote from: Rupinder on Nov 18, 2020, 02:12 PM
You need to have necessary dependencies to run the plugin... Download all vcredist versions and try. You will need the MySQL libraries as well.

AFAIK MySQL is embedded in the plugin (on Windows). So it is either compiled with the plugin or non existent at all. You don't need something else other than the DLL itself. On Linux it is another story as you just need to install MySQL from your package manager. Assuming it matches the one from the plugin.

As for runtime dependencies. People should learn that they need Visual C++ Redistributable Runtimes All-in-One for any kind of program. Not just this.
#9
TL;DR

Quote from: ibee_19 on Jul 16, 2019, 11:46 AM...
And after D.E.[[V]].I.L blocked Vortex on discord.
So yeah the entire purpose of this topic is to signify that both RONNIE and VORTEX aren't associated with iNs in any way from now on and whatever they do, it won't be linked with iNs and its Entire members.
...



Quote from: ibee_19 on Jul 16, 2019, 11:46 AM... Everything was running smoothly until ronnie adopted a "CHEAP LOVER" identity as he indulged into a love affair with a female VC:MP Player whose identity won't be disclosed here. He started damaging the reputation of iNs. I and D.E.[[V]].I.L took the notice of it and immediately suspended him from the clan and issued him a warning mentioning to EITHER stop doing such things which ruin the clan's reputation OR leave the clan permanently. ...

Dude, banning someone because he was trying to get some pussy makes you look bad either way.
#10
If you use something like Process Explorer you will notice that bellow your `vice.exe` process (if you've configured Process Explorer to group parent/child processes) there's something like `gameux.dll`.

That `gameux.dll` is basically windows game explorer that's part of windows 7 and it tries to attach to your game to (likely) provide some in-game user interface and also to retrieve information about the game from the internet. That second task it does (connecting to the internet) it fails. Actually it doesn't happen so it hangs your game while trying.

This feature of windows cannot be removed (thank MICROSH!T for that) and it happens to more games than just Vice City. All you can probably do is to make windows game explorer forget about your games. IIRC, you can do that by removing some registry entries.

Just look up (i.e. google) how to prevent windows game explorer (or `gameux.dll`) from attaching and hanging your game.
#12
If you don't have anything meaningful to contribute. Just shut the f* up and play the game.

#13
Quote from: Athanatos on May 29, 2019, 05:39 PMIf you say so, it still doesn't make sense to me.

Basically that guy said what he wanted to say or he agreed with what the quote said. Can be interpreted wrong ofc. And a post-like would suffice. But some (many) people do that.
#14
Client Scripting / Re: Real Time
May 21, 2019, 09:01 PM
Quote from: dracc on May 21, 2019, 08:01 AMWell, you run System.GetDate and update the GUILabel on every single processed frame - no wonder it's slow.

Updating a GUI already happens at every frame.

His problem is that he is changing the font size at every frame. Which means the font atlas must be re-built on every frame. And that will actually kill your performance.

Basically it all boils down to this line:
::timer[ "date" ].FontSize = sX * 0.025;
This is a known issue. Pick a set of fonts and sizes and stick with them. Otherwise use a pre-generated image with the text and scale that.
#15
wtf does this have to do with sqmod?