Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 500
Search took 0.27 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help Yesterday, 22:13
Replies: 3
Views: 77
Posted By Bugsy
Re: Spawned a NULL entity

Please use php or pawn tags instead of quote for code.
Forum: Scripting Help 06-27-2022, 16:33
Replies: 15
Views: 332
Posted By Bugsy
Re: Need help with nvault array

Right, you could consolidate all player data items to a single nvault array record for each player, instead of having multiple nvault records for each data item, for each player.

So with nvault...
Forum: Suggestions / Requests 06-26-2022, 23:04
Replies: 14
Views: 1,298
Posted By Bugsy
Re: Double Knife Frag [SEARCH]

#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

public plugin_init()
{
register_event( "DeathMsg" , "Kill" , "a" , "1>0" );
}

public Kill()
Forum: Suggestions / Requests 06-26-2022, 12:30
Replies: 14
Views: 1,298
Posted By Bugsy
Re: Double Knife Frag [SEARCH]

Might want to add a "1>0" condition and maybe a read_data(1) != read_data(2) check.
Forum: Scripting Help 06-25-2022, 23:26
Replies: 15
Views: 332
Posted By Bugsy
Re: Need help with nvault array

If you have 1 or 50 plugins it doesn't matter to the rule, from an individual data record perspective, nvault_get can only be used with nvault_set, and nvault_get_array can only be used with...
Forum: Scripting Help 06-25-2022, 11:14
Replies: 15
Views: 332
Posted By Bugsy
Re: Need help with nvault array

Why use 2 separate vaults?
Forum: Scripting Help 06-25-2022, 11:02
Replies: 15
Views: 332
Posted By Bugsy
Re: Need help with nvault array

A vault can have a combination of array and non-array data. You just cant do

nvault_set( vault , "bugsy" , "abc" )
nvault_get_array( vault , "bugsy" , arr , size );
Forum: Scripting Help 06-25-2022, 10:37
Replies: 15
Views: 332
Posted By Bugsy
Re: Need help with nvault array

Using the below as an example, you are passing what appears to be a single integer (g_level[]) with a size of the entire array (33?) for all players which doesn't make any sense.

formatex(szKey,...
Forum: Off-Topic 06-25-2022, 00:37
Replies: 1
Views: 176
Posted By Bugsy
Re: Where to start?

For plugin mods, look at existing mods that are similar to what you want to create then experiment/learn/ask questions. Look around in the SourceMod section.
Forum: Scripting Help 06-24-2022, 23:23
Replies: 15
Views: 332
Posted By Bugsy
Re: Need help with nvault array

This means you tried to use nvault_get_array() on data saved using nvault_set(). If this is not the case, it may be a bug but I'll need more info to look into fixing it.
Forum: Code Snippets/Tutorials 06-17-2022, 11:07
Replies: 118
Views: 68,657
Posted By Bugsy
Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)

Do you just need the SQL or are you asking for code? For something simple like this, you could always use nVault, which includes the prune function to delete stuff after X time.
Forum: Scripting Help 06-11-2022, 22:06
Replies: 13
Views: 313
Posted By Bugsy
Re: save data

Because you're using the enum to size a 2-dimension array of strings. What you did would allow this format only

{ 1 , 2 },
{ 3 , 4 }

etc
Forum: Scripting Help 06-11-2022, 21:44
Replies: 13
Views: 313
Posted By Bugsy
Re: save data

Supremache, you need to make Goku and Freezer arrays
Forum: Suggestions / Requests 06-11-2022, 19:36
Replies: 38
Views: 1,456
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

Remove all other 3rd party plugins from plugins.ini and see if it still happens

I also made a slight tweak to the above code, give it a try
Forum: Suggestions / Requests 06-11-2022, 11:52
Replies: 38
Views: 1,456
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

Hardly tested


#include <amxmodx>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <hamsandwich>

new const Version[] = "0.1";
Forum: Suggestions / Requests 06-05-2022, 22:46
Replies: 38
Views: 1,456
Posted By Bugsy
Forum: Scripting Help 06-01-2022, 20:45
Replies: 2
Views: 194
Posted By Bugsy
Re: What is the difference between those two functions?

They are not functions, they are variables/arrays. You are correct in that they store information.

A Float holds a floating point decimal: 3.146534
A bool holds true or false

It depends on...
Forum: Scripting Help 05-30-2022, 09:43
Replies: 24
Views: 519
Posted By Bugsy
Re: Improving and optimizing this thing

Technically, no, because in both cases it's the same value: DefaultKnive is equal to 0. This is strictly a tag mismatch warning and the code will still run. As HamletEagle mentioned, you can suppress...
Forum: Scripting Help 05-29-2022, 22:50
Replies: 24
Views: 519
Posted By Bugsy
Re: Improving and optimizing this thing

Looks ok at first glance, test it

To fix those tag mismatches:

for(new Knives:i = DefaultKnife; i < Knives; i++) {

for(new P90s:i = DefaultP90; i < P90s; i++) {
Forum: Scripting Help 05-29-2022, 22:26
Replies: 24
Views: 519
Posted By Bugsy
Re: Improving and optimizing this thing

Because the array is sized using an enumerator (enum), which then requires that any time you index the array, it expects a variable that is tagged with the enum.

So you can either do:

new...
Forum: Scripting Help 05-29-2022, 22:12
Replies: 24
Views: 519
Posted By Bugsy
Re: Improving and optimizing this thing

To fix the tag mismatch in this function, anytime you use item, tag it with Knives:

KnivesItems[ Knives:item ][ ItemFlags ]
Forum: Scripting Help 05-29-2022, 22:10
Replies: 24
Views: 519
Posted By Bugsy
Re: Improving and optimizing this thing

If player_item[] holds the players knive index/type, I'd define it as:
new player_item[MAX_PLAYERS + 1]
//instead of
new player_item[ 7 ][MAX_PLAYERS + 1]

//if it needs to hold both knife type...
Forum: Scripting Help 05-29-2022, 21:33
Replies: 24
Views: 519
Posted By Bugsy
Re: Improving and optimizing this thing

It's pretty simple, and better, once you learn how to this type of organization.

KnivesItems[ Which knife type/index ][ The data you want for the knife ]

These are your knife types, you can...
Forum: Scripting Help 05-29-2022, 19:34
Replies: 24
Views: 519
Posted By Bugsy
Re: Improving and optimizing this thing

I didnt realize you also had separate flags for each, I added that to the above code. If you have any questions on using this, let me know.
Forum: Scripting Help 05-29-2022, 11:31
Replies: 24
Views: 519
Posted By Bugsy
Re: Improving and optimizing this thing

CurWeapon

switch ( get_user_weapon(id) )
{
case CSW_KNIFE , CSW_P90:
{
Set_Model(id)
}
}
Set_Model
Showing results 1 to 25 of 500

 
Forum Jump

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


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