Raised This Month: $52 Target: $400
 13% 

Showing results 1 to 25 of 500
Search took 0.12 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help Today, 12:49
Replies: 2
Views: 62
Posted By Bugsy
Re: Is this code functional/correct ?

Show more code. Instead of answering your question as you asked, it would be best to show the root of the problem you are trying to solve. There may be a better way.
Forum: Scripting Help Yesterday, 13:51
Replies: 6
Views: 242
Posted By Bugsy
Re: Can this code be optimized further?

I agree with HamletEagle and Oxi. If this plugin is going to be distributed on these boards then the code is useless.
Forum: Scripting Help Yesterday, 12:18
Replies: 6
Views: 242
Posted By Bugsy
Re: Can this code be optimized further?

@deprale, I'm not sure if you want to require the hostname and IP match in the same row of g_ServerList[]. The below will require both hostname and IP match.

CheckLicense()
{
new szHost[ 64 ] ,...
Forum: Scripting Help 02-06-2019, 22:47
Replies: 4
Views: 246
Posted By Bugsy
Re: SQL Foreign key ?

SELECT skill_1, skill_2, skill_3

FROM tblPlayers

LEFT JOIN tblSkills
ON tblPlayers.id=tblSkills.player_id;

or

SELECT skill_1, skill_2, skill_3
Forum: Scripting Help 02-04-2019, 19:24
Replies: 13
Views: 631
Posted By Bugsy
Re: upload vault content to mysql

Why not insert into db directly from variables when the player is disconnecting, or something?
formatex( szBuffer , charsmax( szBuffer , "INSERT INTO tblHello (nazwa, klasa, poziom) VALUES...
Forum: Scripting Help 02-04-2019, 08:52
Replies: 5
Views: 350
Posted By Bugsy
Re: Float speed

Because weapons have a maxspeed, so it changes when you switch. IIRC, set it on CurWeapon event. This has been covered before, trying searching.
Forum: Scripting Help 02-03-2019, 12:41
Replies: 13
Views: 631
Posted By Bugsy
Re: upload vault content to mysql

#include <amxmodx>
#include <nvault>

const MaxNumberLength = 6;

enum VaultValues
{
doswiadczenie,
poziom,
inteligencja,
Forum: Scripting Help 02-03-2019, 12:14
Replies: 9
Views: 468
Posted By Bugsy
Re: Check player name in mysql and load an integer value from mysql

You should use steam id instead of name. Also, if the name has a ' character in it, it will make your SQL lookup fail.

SELECT * FROM Table WHERE name='bugsy 'test''
Forum: Scripting Help 02-02-2019, 21:30
Replies: 9
Views: 468
Posted By Bugsy
Re: Check player name in mysql and load an integer value from mysql

The SQL is covered, and you can follow the framework from info in this thread: https://forums.alliedmods.net/showpost.php?p=2626258&postcount=2
Forum: Scripting Help 02-02-2019, 12:21
Replies: 4
Views: 311
Posted By Bugsy
Re: get_user_team

Many things wrong with your code. For one, where are all of these variables defined? I hope they are not globals. You need to post full code if you want an answer. I am making some assumptions with...
Forum: Scripting Help 02-01-2019, 20:14
Replies: 1
Views: 297
Posted By Bugsy
Re: invalid symbol name "" (1.9.0)

AMX Mod X Compiler 1.9.0.5229
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Header size: 176 bytes
Code size: 76 bytes
Data size: ...
Forum: Scripting Help 01-31-2019, 18:44
Replies: 14
Views: 567
Posted By Bugsy
Re: [SOLVED] Array sizes do not match, or destination array is too small

Correct, the elements of the enum sized array are packed side by side, so from that perspective yes. But the compiler should handle this scenario.
Forum: Scripting Help 01-30-2019, 18:54
Replies: 14
Views: 567
Posted By Bugsy
Re: [SOLVED] Array sizes do not match, or destination array is too small

copy() only works on strings, not arrays. So it could work for ascii values (0-255), but if items 0, 1, or 2 are equal to 0, the data copy will end there. Not reliable for this purpose. Sadly, I...
Forum: Scripting Help 01-29-2019, 21:55
Replies: 14
Views: 567
Posted By Bugsy
Re: Array sizes do not match, or destination array is too small

Your usage looks correct to me, but the compiler is temperamental sometimes when passing enumerator sized arrays to a function. Save yourself the headache and use individual arrays for stats and...
Forum: Scripting Help 01-29-2019, 19:19
Replies: 14
Views: 567
Posted By Bugsy
Re: Array sizes do not match, or destination array is too small

get_stats() and get_stats2() retrieve data from csstats.dat, it is not always associated with a player who is actively on your server. I am pointing this out because you have this: new...
Forum: Scripting Help 01-27-2019, 17:31
Replies: 13
Views: 631
Posted By Bugsy
Re: upload vault content to mysql

Yes, INSERT INTO [table] ([fields]) VALUES ([values])
Forum: Scripting Help 01-27-2019, 13:50
Replies: 13
Views: 631
Posted By Bugsy
Re: upload vault content to mysql

Yes, use nVault Utility to read the vault and SQL statements to insert into the DB.
Forum: Scripting Help 01-27-2019, 10:20
Replies: 14
Views: 664
Posted By Bugsy
Re: Login for admins

Huh? I said alliedmodders team because the statement includes SourceMod, not only AMX-X.
Forum: Scripting Help 01-26-2019, 12:36
Replies: 1
Views: 335
Posted By Bugsy
Re: combination of looking at someone and pressing e

I added comments only for the part of your code that does not work:

///this dont work
@@//The buttons checking is correct if you want to only detect when the player FIRST presses USE. This will...
Forum: Scripting Help 01-26-2019, 12:19
Replies: 14
Views: 664
Posted By Bugsy
Re: Login for admins

amxmodx works with non-steam, but the alliedmodders community does not support those who do not use steam. If you use steam this problem would not exist.
Forum: Off-Topic 01-20-2019, 11:53
Replies: 71
Views: 31,824
Posted By Bugsy
Re: nVault Editor v0.4 beta

That's actually a good idea.
Forum: Scripting Help 01-19-2019, 15:32
Replies: 8
Views: 479
Posted By Bugsy
Re: Problem

hamzashadow, if you want help, make your post subject descriptive and include a statement about your specific problem in the post. "Problem" and then posting code gives no information for where to...
Forum: Scripting Help 01-19-2019, 11:11
Replies: 24
Views: 884
Posted By Bugsy
Re: Can't figure this out :)

May want to consider something simpler, like a HUD on the left or right side of the screen that shows all players and their skills. This would be easy to implement, and you can do things like show...
Forum: Scripting Help 01-18-2019, 00:14
Replies: 24
Views: 884
Posted By Bugsy
Re: Can't figure this out :)

formatex returns the size of the string formatted, you don't really need this value for anything but it's common practice for string manipulating functions to return the length of the string..many...
Forum: Approved Plugins 01-17-2019, 20:24
Replies: 1,237
Views: 516,309
Posted By Bugsy
Re: AimBot Detection

I did find it but it was not as complete as I was expecting. And just to clarify what this does.. you would run it on your server and it would provide ratio's based on real player statistics which...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 19:40.


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