Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: PRoSToTeM@
Forum: General 07-30-2018, 15:00
Replies: 17
Views: 4,068
Posted By PRoSToTeM@
Re: get_user_msgid() fails to work on server startup?

Ye, plugin_precache is called from first spawn (from SV_LoadEntities). And usermsg registering is called from SV_ActivateServer (pfnServerActivate callback). SV_ActivateServer is called after...
Forum: General 07-30-2018, 14:10
Replies: 17
Views: 4,068
Posted By PRoSToTeM@
Re: get_user_msgid() fails to work on server startup?

Yeah, I know, I only want to say that there is an application for that, but it doesn't work as expected.

That's why I'm here.

If register_message will work on startup (with substituted...
Forum: General 07-30-2018, 13:22
Replies: 17
Views: 4,068
Posted By PRoSToTeM@
Re: get_user_msgid() fails to work on server startup?

plugin_precache is useful for hooking WeaponList via register_message which requires get_user_msgid call.
Forum: Scripting Help 01-30-2018, 23:11
Replies: 19
Solved random
Views: 3,261
Posted By PRoSToTeM@
Re: random

Now try to use custom random function that always returns 13. xD
Forum: General 01-28-2018, 19:35
Replies: 7
Views: 1,489
Posted By PRoSToTeM@
Forum: Scripting Help 01-22-2018, 01:12
Replies: 19
Solved random
Views: 3,261
Posted By PRoSToTeM@
Re: random

This method (https://forums.alliedmods.net/showthread.php?p=2561578#post2561578) should work good here, it requires strong order (maybe weak order can work too), which strings have.
Forum: Scripting Help 01-21-2018, 08:25
Replies: 19
Solved random
Views: 3,261
Posted By PRoSToTeM@
Re: random

https://forums.alliedmods.net/showthread.php?t=302993
Forum: Scripting Help 01-18-2018, 19:07
Replies: 7
Views: 1,285
Posted By PRoSToTeM@
Re: String Explode : Segmentation Fault

@ish12321 for me not only in loop. Looks like compiler calculates "max. usage", but doesn't use it for calculating "stack/heap size":
Stack/heap size: 16384 bytes; estimated max. usage=8266...
Forum: Scripting Help 01-18-2018, 11:36
Replies: 7
Views: 1,285
Posted By PRoSToTeM@
Re: String Explode : Segmentation Fault

What is your plugin's "Stack/heap size"?
Forum: HL1 Servers (HLDS) 01-15-2018, 00:44
Replies: 1
Views: 975
Posted By PRoSToTeM@
Re: fps_overide 1 Issue

Can you give me an address of some "bugged" server and "unbugged" server in PM?
Forum: Off-Topic 01-12-2018, 02:18
Replies: 10
Views: 2,824
Posted By PRoSToTeM@
Re: [CS1.6] Bullet Travel Time

https://forums.alliedmods.net/showthread.php?t=48259
https://forums.alliedmods.net/showthread.php?t=73245
Forum: Code Snippets/Tutorials 01-10-2018, 18:29
Replies: 32
Views: 29,305
Posted By PRoSToTeM@
Re: How To: Respawn a player

You should remove this task on client_disconnect.
Forum: Scripting Help 01-09-2018, 19:29
Replies: 12
Views: 2,178
Posted By PRoSToTeM@
Re: Get player gender by steamid, possible?

Also because it is limited. And what if player wants to have "m" on 1 server and "f" on another?:twisted:
Forum: Scripting Help 01-08-2018, 09:16
Replies: 50
Views: 7,314
Posted By PRoSToTeM@
Re: weaponbox/armoury_entity Touch

https://forums.alliedmods.net/showthread.php?t=294188
Forum: Scripting Help 01-07-2018, 18:25
Replies: 50
Views: 7,314
Posted By PRoSToTeM@
Re: FM Touch Entity

1365 for maxplayers = 32.
Forum: Code Snippets/Tutorials 01-07-2018, 14:58
Replies: 16
Views: 11,438
Posted By PRoSToTeM@
Re: [FAQ]armoury_entity

Even pro coders from this forum forget to remove player task on client_disconnect, but it is a bit unrelated.
But IMO itemType check should throw an error, it's the coder job to use valid arguments...
Forum: General 01-07-2018, 13:58
Replies: 11
Views: 2,921
Posted By PRoSToTeM@
Re: [1.8.3] show_activity_color

@OciXCrom it can be just in amxmisc, because client_print_color calls client_print if colors aren't supported in this game. The potential problem is exploiting color codes in input data.
Forum: Scripting Help 01-07-2018, 13:53
Replies: 50
Views: 7,314
Posted By PRoSToTeM@
Re: FM Touch Entity

No, you need a string->int map (i.e. Trie) if you want to convert a enum string to integer.
Forum: Code Snippets/Tutorials 01-07-2018, 13:01
Replies: 16
Views: 11,438
Posted By PRoSToTeM@
Re: [FAQ]armoury_entity

weaponbox too.


Maybe better to throw an error? Who will check returned value? (almost always no one checks them)
Forum: Scripting Help 01-07-2018, 09:04
Replies: 50
Views: 7,314
Posted By PRoSToTeM@
Re: FM Touch Entity

It is not fakemeta event, in engine you should use PLUGIN_[CONTINUE/HANDLED].
Forum: Scripting Help 01-07-2018, 08:51
Replies: 12
Views: 1,893
Posted By PRoSToTeM@
Re: [ H3LP ] Macro

Will log_error without return stop the execution?
Forum: Scripting Help 01-07-2018, 08:42
Replies: 5
Views: 1,569
Posted By PRoSToTeM@
Re: Maximum Text length for nick is 31 character

It is hardcoded on the client-side.
Forum: General 01-07-2018, 08:40
Replies: 11
Views: 2,921
Posted By PRoSToTeM@
Re: [1.8.3] show_activity_color

I understood you. You want to replace client_print with client_print_color and you don't want to replace the strings. And after that users can just edit .txt translations to add colors.
Forum: Scripting Help 01-06-2018, 22:40
Replies: 12
Views: 1,893
Posted By PRoSToTeM@
Re: [ H3LP ] Macro

#define CHECK_ISPLAYER(%1) \
do { \
if (!(1 <= %1 <= get_maxplayers())) \
{ \
log_error(AMX_ERR_NATIVE, "[ZP] Invalid player index %d", %1); \
return 0; \
} else {...
Forum: General 01-06-2018, 21:48
Replies: 11
Views: 2,921
Posted By PRoSToTeM@
Re: [1.8.3] show_activity_color

Yeah, and color codes (and its colors) are different.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 07:44.


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