Raised This Month: $44 Target: $400
 11% 

Showing results 1 to 25 of 105
Search took 0.01 seconds.
Search: Posts Made By: client21
Forum: Scripting 10-16-2021, 17:10
Replies: 8
Views: 1,330
Posted By client21
Re: MarkNativeAsOptional - inconvenient moment.

Why are you lying?) If another plugin is loaded later or there is the necessary communication between them (for example, using events, or GetFeatureStatus->FeatureType_Native), then this will work....
Forum: Scripting 10-16-2021, 12:57
Replies: 8
Views: 1,330
Posted By client21
Re: MarkNativeAsOptional - inconvenient moment.

This is done on purpose. Understood, thanks :3
Forum: Scripting 10-15-2021, 21:33
Replies: 8
Views: 1,330
Posted By client21
Re: MarkNativeAsOptional - inconvenient moment.

Yes, you are all very kind, but for some reason you do not answer my main question. I've provided a specific example code and I'm wondering why __pl_z_SetNTVOptional->MarkNativeAsOptional doesn't...
Forum: Scripting 10-15-2021, 14:24
Replies: 8
Views: 1,330
Posted By client21
Re: MarkNativeAsOptional - inconvenient moment.

Thanks, but I know that. This way is not suitable for me because:


Don't ask me why I need it, just accept the fact that I need it :)

In any case, I will find the optimal solution, but I...
Forum: Scripting 10-14-2021, 12:48
Replies: 8
Views: 1,330
Posted By client21
MarkNativeAsOptional - inconvenient moment.

z.inc

#if defined _z_included
#endinput
#endif
#define _z_included

native int Test_z();

public SharedPlugin __pl_z =
Forum: Scripting 03-14-2021, 16:14
Replies: 1
Views: 419
Posted By client21
SQL_TQuery thread

void v1() {
// code
}

void v2() {
SQL_TQuery(....callback
}

SQLTCallback callback
{
Forum: Extensions 02-02-2021, 22:59
Replies: 3
Views: 1,458
Posted By client21
Re: uint (Operations with unsigned int)

This is a comparison with the previous version FormatUTime v1.0.2 (uint.zip). Standart function FormatTime is faster, but I don't think that's a problem. I would be glad if someone could suggest a...
Forum: Extensions 01-31-2021, 14:18
Replies: 3
Views: 1,458
Posted By client21
uint (Operations with unsigned int)

uint v1.0.3

As soon as the value exceeds int limit (2147483647), SourcePawn starts to have problems, example:
int x = 2147483650 / 2; // Must be: 1073741825
PrintToServer("%%u = %u\n%%d = %d\n%u...
Forum: Scripting 12-04-2020, 21:56
Replies: 6
Views: 1,345
Posted By client21
Re: Push Function to ArrayList..

I don't think so.
void PackFunction(cell_t function);
cell_t = 4 bytes (max value = unsigned int)
int i = StringToInt("4294967295"); // max value = unsigned int
PrintToServer("%u", i);

----
...
Forum: Scripting 12-04-2020, 12:04
Replies: 6
Views: 1,345
Posted By client21
Re: Push Function to ArrayList..

Yes, this is also a way, but it still looks silly.
It feels like PushFunction method was planned, but forgotten.
At the moment, there is still such a way (it works) (by Kailo) :

int...
Forum: Scripting 12-04-2020, 11:02
Replies: 6
Views: 1,345
Posted By client21
Push Function to ArrayList..

public void OnPluginStart()
{
ArrayList a = new ArrayList();
Function f = GetFunctionByName(GetMyHandle(), "OnPluginStart");

// error 130: cannot coerce functions to values
a.Push(f);
...
Forum: Coding MM:S Plugins & SM Extensions 01-11-2020, 18:48
Replies: 4
Views: 8,790
Posted By client21
Re: How i can get object pointer?

Solution in core/sourcemod.cpp
But you must take into account that there are different methods for obtaining a pointer in old and new versions sm.
Forum: Coding MM:S Plugins & SM Extensions 01-10-2020, 16:11
Replies: 4
Views: 8,790
Posted By client21
How i can get object pointer?

sourcemod 1.6.3 (don't ask why).

How get pointer/object for class ISourcePawnEngine2
https://github.com/alliedmodders/sourcemod/blob/1.6-dev/public/sourcepawn/sp_vm_api.h#L1184

We can use this...
Forum: Scripting 12-26-2019, 08:04
Replies: 0
Views: 492
Posted By client21
Nested natives/forwards (limits)

1. Call native A
2. A calls native B
3. B calls forward (hook) C
3. C calls forward D

etc..

When can a problem arise?
Maybe just enough to ensure that this was not an infinite loop? Or...
Forum: Scripting 12-18-2019, 19:08
Replies: 18
Views: 2,376
Posted By client21
Re: Get weapon slot number by classname

Yes, i forgot about items_game.txt for csgo =) thx
But cs:s don't have this, maybe we can only decrypt .ctx files.

I think this is good news, given the fact that cs:s rarely updated.
Thanks.
Forum: Scripting 12-18-2019, 14:58
Replies: 18
Views: 2,376
Posted By client21
Re: Get weapon slot number by classname

rly? Now read again first post, namely paragraph 3.
Tomorrow there will be an update of csgo and a new weapon whose name you do not know, do you understand the logic?
Forum: Scripting 12-18-2019, 14:53
Replies: 18
Views: 2,376
Posted By client21
Re: Get weapon slot number by classname

I have already explained everything in great detail and not imagining how you cannot understand.
Try to read the first post again, he has been updated.

-nobots dude and you can't spawn/create bot...
Forum: Scripting 12-18-2019, 12:52
Replies: 18
Views: 2,376
Posted By client21
Forum: Scripting 12-18-2019, 12:46
Replies: 18
Views: 2,376
Posted By client21
Re: Get weapon slot number by classname

omg guys, rly?

You have only weapon classname (from sm_dump_classes) and your task is to find out the slot number without using client. Of course i know how get weapon slot number if i have client...
Forum: Scripting 12-18-2019, 11:12
Replies: 18
Views: 2,376
Posted By client21
Re: Get weapon slot number by classname

You not have "client".. Only classname. Need get slot number without "client" :|
Forum: Scripting 12-18-2019, 00:18
Replies: 18
Views: 2,376
Posted By client21
Re: Get weapon slot number by classname

server empty dude and no bots
Forum: Scripting 12-17-2019, 23:05
Replies: 18
Views: 2,376
Posted By client21
Get weapon slot number by classname

Task: get weapon slot number using only weapon classname with out client index.
Game: cs:s, csgo (or choose 1)

--
Updated:
csgo - we can use items_game.txt
cs:s - we can only decrypt .ctx...
Forum: Scripting 05-11-2019, 12:10
Replies: 12
Views: 1,895
Posted By client21
Re: hook ReloadEffect csgo not work

Now even SDKHook_ReloadPost don't work (csgo).
Event just not called.
Forum: Scripting 10-22-2018, 17:18
Replies: 11
Views: 1,691
Posted By client21
Re: SM strangenesses

I test on bot, i think yes, maybe he buy armor, but anyway, it's stupid.

PrintToServer("-> %d", StrContains("seriously?", "", false));
-> 0
:shock:

new Handle:kv = CreateKeyValues("");...
Forum: Scripting 10-18-2018, 08:11
Replies: 12
Views: 1,895
Posted By client21
Re: hook ReloadEffect csgo not work

No.. Just i must use sdkhooks hook or weapon_reload, "ReloadEffect" don't worked, and no help.
And in csgo not work this AcceptEntityInput(client, "DispatchEffect");

For example, remember that...
Showing results 1 to 25 of 105

 
Forum Jump

All times are GMT -4. The time now is 06:42.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode