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

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: HamletEagle
Forum: Scripting Help Yesterday, 10:55
Replies: 14
Views: 361
Posted By HamletEagle
Re: need help in optimization [weird coding]

But you are increasing the speed of appending a space to the end of a potentially 32 characters long string... which does literally nothing. If your string had millions of characters it would make...
Forum: Scripting Help Yesterday, 08:15
Replies: 14
Views: 361
Posted By HamletEagle
Re: need help in optimization [weird coding]

I agree with OciXCrom, I don't see the point in not using formatex to add a space.
Forum: New Plugin Submissions 01-21-2022, 14:56
Replies: 20
Views: 1,195
Posted By HamletEagle
Re: [ReAPI] Advanced slot reservation

I am not interested in reviewing reapi only plugins. As I mentioned in my previous post, I can help you add support for regular hlds and provide the needed orpheu signatures and code. If you agree,...
Forum: Scripting Help 01-20-2022, 10:57
Replies: 14
Views: 361
Posted By HamletEagle
Re: need help in optimization [weird coding]

Reducing the code size shouldn't be your goal. Do you have a valid reason as to why you want to change the code? If not, leave it as it is.
Forum: Scripting Help 01-16-2022, 07:19
Replies: 8
Views: 331
Posted By HamletEagle
Re: Indexing a string inside a native will cause outbounds?

It makes perfect sense that you are getting errors using the first code snippet.


new szName[32];
get_user_name(id, szName[10], charsmax(szName));


szName has 32 cells but in get_user_name...
Forum: Scripting Help 01-16-2022, 04:43
Replies: 8
Views: 331
Posted By HamletEagle
Re: Indexing a string inside a native will cause outbounds?

The first one can produce an index out of bounds error since you pass the entire array size as 3rd param but the string is smaller because it is sliced.

The second one looks fine.

Are you...
Forum: Scripting Help 01-15-2022, 12:50
Replies: 7
Views: 437
Posted By HamletEagle
Re: FreeGameGuard v1.1 By Doron Bachar

Don't bother. Every few months he'll post "something version something by Doron Bachar" and never explain what it actually is or what it does.
Forum: Scripting Help 01-09-2022, 17:03
Replies: 1
Views: 193
Posted By HamletEagle
Re: sv_stepsize for individual players possible?

It should be possible with orpheu and sending SVC_NEWMOVEVARS individually to each player.
Forum: Scripting Help 01-09-2022, 11:22
Replies: 11
Views: 484
Posted By HamletEagle
Re: [MySQL] Return function

No, it is not correct. Let me try to explain again using your code:

new VarTest

public SqlGetUserIndex(id)
{
SQL_ThreadQuery(handle, "_SqlGetUserIndex", "SELECT id FROM users WHERE authid...
Forum: Scripting Help 01-09-2022, 09:44
Replies: 11
Views: 484
Posted By HamletEagle
Re: [MySQL] Return function

You should mention that this will execute the queries in synchronous/blocking mode which will block the main thread until the query is completed. Generally, this isn't something you want to do.
...
Forum: Scripting Help 01-06-2022, 14:51
Replies: 4
Views: 304
Posted By HamletEagle
Re: Return integer from mysql handler function

The function can not return anything useful because when it returns the results may not be available. The function is non-blocking, it puts a request saying that you want the query to be executed but...
Forum: Scripting Help 01-06-2022, 04:10
Replies: 5
Views: 283
Posted By HamletEagle
Re: Block event/forward default procedure

You can use register_message to hook events as pre and block. Fakemeta/hamsandwich hooks can be blocked when hooked as pre.

However, blocking something does not guarantee things will work as you...
Forum: New Plugin Submissions 01-04-2022, 13:07
Replies: 20
Views: 1,195
Posted By HamletEagle
Re: [ReAPI] Advanced slot reservation

People in this topic sound like a broken record, but Shadows Adi also did a poor job explaining why steamid can't be used at this point. This isn't a matter of supporting no steam, during...
Forum: New Plugin Submissions 01-03-2022, 09:55
Replies: 293
Views: 87,162
Posted By HamletEagle
Re: Entity Resources Replacement[ V 1.4 ]

Are you using cl_minmodels by any chance? If models are being downloaded then the plugin is reading them correctly.
Forum: Scripting Help 12-31-2021, 03:38
Replies: 4
Views: 401
Posted By HamletEagle
Re: 3 Dimensional array using ArrayCreate()?

"Bring fast and efficient DYNAMIC storage". As I said before, dynamic means the array is dynamically allocated on the heap and can be resized if full, to make space for more elements. Normal arrays...
Forum: Scripting Help 12-30-2021, 07:54
Replies: 4
Views: 401
Posted By HamletEagle
Re: 3 Dimensional array using ArrayCreate()?

Not sure what you read or where you read it, but this is completely wrong. Looping over a "normal" array or a dynamic array has the same asymptotic complexity of O(array size) because you have to...
Forum: Suggestions / Requests 12-27-2021, 13:24
Replies: 13
Views: 1,084
Posted By HamletEagle
Re: Secondary ammo

Using custom hud sprites works just fine.
Forum: Code Snippets/Tutorials 12-25-2021, 07:53
Replies: 31
Views: 11,924
Posted By HamletEagle
Re: ROG - A better random origin generator[NO HIDDEN ZONES UPDATE]

As I said before, please attach the map so I can run tests.
Forum: Scripting Help 12-24-2021, 18:00
Replies: 3
Solved %s %d etc
Views: 311
Posted By HamletEagle
Re: %s %d etc

They are filled from the source code.
Forum: Scripting Help 12-24-2021, 15:10
Replies: 7
Views: 417
Posted By HamletEagle
Re: Teleport to random position

I'm not sure what you are asking, the spawn points are validated as much as possible already.
If you have a certain map in mind where bad spawn points are generated, attach it.

Also, it would be...
Forum: Scripting Help 12-24-2021, 08:19
Replies: 7
Views: 431
Posted By HamletEagle
Re: About MySQL and Sqlite

You could just use threaded queries to avoid freezing the main game thread.
Forum: Scripting Help 12-23-2021, 12:17
Replies: 7
Views: 417
Posted By HamletEagle
Re: Teleport to random position

Are you absolutely sure about that? I can clearly see a call to ROGInitialize in plugin_init inside the example code. You aren't supposed to initialize it every single time, just once, in...
Forum: Scripting Help 12-23-2021, 12:06
Replies: 7
Views: 417
Posted By HamletEagle
Re: Teleport to random position

You have an example plugin in the topic, read it. It does what you want already. But, long story short: you need to initialize the random origin generator(obviously, can't use something that was not...
Forum: Scripting Help 12-23-2021, 10:15
Replies: 7
Views: 417
Posted By HamletEagle
Re: Teleport to random position

To generate random valid origins: https://forums.alliedmods.net/showthread.php?t=309495
Then, just use EngFunc_SetOrigin
Forum: Approved Plugins 12-23-2021, 05:34
Replies: 89
Views: 16,487
Posted By HamletEagle
Re: [MVP] MVP Of the Round + Custom Sounds (reAPI Support)

For the warnings:

g_fHudPos[HudPosX] = _:str_to_float(szHudPosX)
g_fHudPos[HudPosY] = _:str_to_float(szHudPosY)


This is a compiler issue because it ignores the fact that HudPosX is tagged at...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 02:22.


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