Raised This Month: $28 Target: $400
 7% 

Showing results 1 to 25 of 369
Search took 0.01 seconds.
Search: Posts Made By: Shadows Adi
Forum: Scripting Help Yesterday, 17:23
Replies: 2
Views: 76
Posted By Shadows Adi
Re: MapName (Error)

Because:
https://github.com/alliedmodders/amxmodx/blob/master/plugins/include/amxconst.inc#L52-L55.

Change the var name in the whole souce code and it should be fine.
Forum: Scripting Help 08-02-2021, 10:06
Replies: 4
Views: 185
Posted By Shadows Adi
Re: Special plugin problem !

Just comment "#pragma semicolon 1" if you are too lazy to add some semicolons.
Forum: Scripting Help 08-02-2021, 04:40
Replies: 21
Views: 585
Posted By Shadows Adi
Re: save nvault on plugin_end

Extracted from: https://github.com/alliedmodders/amxmodx/blob/master/amxmodx/meta_api.cpp#L692-L747


// Call plugin_end forward function from plugins.
void C_ServerDeactivate()
{
if...
Forum: General 08-01-2021, 14:22
Replies: 5
Views: 200
Posted By Shadows Adi
Re: AMXX menu bug

Show the problematic code
Forum: General 08-01-2021, 12:54
Replies: 5
Views: 200
Posted By Shadows Adi
Re: AMXX menu bug

Set pdata to destroy the previous menu:

// XO_PLAYER = 5; - PLAYER OFFSET
// 205 = m_iMenu - Menu Offset
set_pdata_int(id, 205, 0, XO_PLAYER);
Forum: New Plugin Submissions 07-29-2021, 04:29
Replies: 54
Views: 9,381
Posted By Shadows Adi
Re: [MVP] MVP Of the Round + Custom SoundTracks (reAPI Support)

Update!
Version 2.1


Fixed a small bug when playing a track.
Implemented plugin compilation through GitHub. Thanks fysiks (https://forums.alliedmods.net/member.php?u=30719)
Forum: General 07-29-2021, 04:06
Replies: 9
Views: 910
Posted By Shadows Adi
Re: Compiling source code through GitHub

Oh, almost forgot about reapi, I think this will solve the issue, I will be back with an answer.

Edit: It works, I downloaded the last version of ReAPI for include files and everything seems ok....
Forum: Scripting Help 07-27-2021, 07:22
Replies: 25
Views: 857
Posted By Shadows Adi
Re: ArrayCreate returns invalid array index

formatex(szParams, charsmax(szParams), "%d %d", iTempArray, iTempArrayItem++);

// Btw, you are passing an 8th param in set_task, which is not vaild. Max params = 7...
Forum: General 07-26-2021, 04:56
Replies: 7
Views: 347
Posted By Shadows Adi
Re: Switch team without dying

http://www.amxmodx.org/api/cstrike/cs_set_user_team
Sets the client's team without killing the player, and sets the client model.

What's wrong with cs_set_user_team() ?
Forum: Scripting Help 07-25-2021, 12:01
Replies: 14
Views: 1,104
Posted By Shadows Adi
Re: Store Attacker damage in dinamic array for every victim

Sorry, forgot to show the code after Bugsy's method:


new g_ePlayerStats[MAX_PLAYERS + 1][MAX_PLAYERS + 1][PlayerStats]

public PlayerTakeDamage_Post(iVictim, pevInflictor, iAttacker,...
Forum: Scripting Help 07-23-2021, 14:35
Replies: 25
Views: 857
Posted By Shadows Adi
Re: ArrayCreate returns invalid array index

1. Make some debugging to make sure that you pass correct array handle ID.

2.

static index, target, szString[16], aHUDMSG_DATA[Hudmessage_SetTask_Data], iTempArray, iTempArrayItem;
...
Forum: Scripting Help 07-22-2021, 17:59
Replies: 25
Views: 857
Posted By Shadows Adi
Re: Invalid array handler

I mean, when are called. The function name.
Forum: Scripting Help 07-22-2021, 16:00
Replies: 25
Views: 857
Posted By Shadows Adi
Re: Invalid array handler

Show when array is created and when task is created
Forum: Scripting Help 07-17-2021, 13:45
Replies: 14
Views: 1,104
Posted By Shadows Adi
Re: Store Attacker damage in dinamic array for every victim

Oki, thank you, I will try the three dimensional array, I will be back with an answer.
Forum: General 07-17-2021, 10:16
Replies: 9
Views: 910
Posted By Shadows Adi
Re: Compiling source code through GitHub

I can't get this work for me lmao.

This is the error which pop-up everytime:
[/php]
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc...
Forum: New Plugin Submissions 07-17-2021, 09:04
Replies: 54
Views: 9,381
Posted By Shadows Adi
Re: [MVP] MVP Of the Round + Custom SoundTracks (reAPI Support)

Can't figure out too much from this error, but I made a small change to code, to check if arraysize - 1 is smaller than UserSelectedTrack.

Show one more line from above which provides the error.
Forum: Scripting Help 07-17-2021, 08:37
Replies: 7
Views: 601
Posted By Shadows Adi
Re: End round display damage done.

Take a look here: https://forums.alliedmods.net/showpost.php?p=2752933&postcount=9

https://forums.alliedmods.net/showpost.php?p=2752933
Forum: Scripting Help 07-17-2021, 03:46
Replies: 14
Views: 1,104
Posted By Shadows Adi
Re: Store Attacker damage in dinamic array for every victim

Yes, something like that.
So it will loop through all entries from "p" loop first, then will continue the "i" loop, isn't that?
Forum: Scripting Help 07-16-2021, 03:39
Replies: 14
Views: 1,104
Posted By Shadows Adi
Re: Store Attacker damage in dinamic array for every victim

I will try later the 3D array too, thank you.

I need the Victim's ID, because this function will used in Round End Event, so I need to loop through player entities to get valid indexes.


Yes,...
Forum: Scripting Help 07-14-2021, 03:09
Replies: 14
Views: 1,104
Posted By Shadows Adi
Re: Store Attacker damage in dinamic array for every victim

I will try and tries way.



This won't work, because i need to know the victim's ID too, and i can't retrieve that using a loop through players using get_players() native.
Forum: Scripting Help 07-13-2021, 13:43
Replies: 14
Views: 1,104
Posted By Shadows Adi
Store Attacker damage in dinamic array for every victim

Hello,
I am trying to store a player's damage dealt to another player in an dinamic array. Down below I tried to find Attacker's name in array to get an index:

if it's returning a valid index, it...
Forum: Scripting Help 07-09-2021, 13:22
Replies: 13
Views: 693
Posted By Shadows Adi
Re: Model Menu API

Try this: ( I left some comments too where you done wrong )

/* Issuse:
1. Knife precache
2. Player Model
3. Edit data from ini file
4. Replace g_szTeams name into eData[Team]
*/
...
Forum: Scripting Help 07-02-2021, 12:52
Replies: 3
Views: 305
Posted By Shadows Adi
Re: Work with sqlx and sqlite in the same plugin

public ChangeDriver()
{
@@ SQL_SetAffinity("mysql") // sqlx is not a driver, it's a module

new aff[15]
SQL_GetAffinity(aff, charsmax(aff))
server_print("Driver =...
Forum: General 06-20-2021, 04:51
Replies: 9
Views: 910
Posted By Shadows Adi
Re: Compiling source code through GitHub

So, basically it would work, but you won't get the binary files only if the owner of repo will publish the release as an offical one, isn't that?
Forum: General 06-17-2021, 14:45
Replies: 9
Views: 910
Posted By Shadows Adi
Compiling source code through GitHub

Hello,
I was wondering if it's possible to compile an AmxModX plugin using some kind of API or Integration for GitHub, just like Alliedmodders "Get plugin" function.
Showing results 1 to 25 of 369

 
Forum Jump

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


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