Raised This Month: $89 Target: $400
 22% 

Showing results 1 to 25 of 500
Search took 0.11 seconds.
Search: Posts Made By: WildCard65
Forum: Scripting 10-18-2017, 17:19
Replies: 13
Views: 240
Posted By WildCard65
Re: Help with Creating entity

The "new" keyword in the old syntax is equivalent to the keyword "int"
Forum: Scripting 10-15-2017, 08:33
Replies: 8
Views: 225
Posted By WildCard65
Re: Simple Plugin does not work.

You're correct, OnClientAuthorized is called BEFORE SourceMod does any admin checks on the client (in sourcemod.logic binary), OnClientPreAdminCheck...
Forum: Scripting 10-15-2017, 08:25
Replies: 6
Views: 215
Posted By WildCard65
Re: What's the limit of "Handle Using Hud"?

4096 is the entity limit, SourceMod's handle limit is actually 32,768 (https://github.com/alliedmodders/sourcemod/blob/master/core/logic/HandleSys.h#L42)
Forum: Scripting 10-11-2017, 15:29
Replies: 5
Views: 113
Posted By WildCard65
Re: Stopping a non-repeatable timer

KillTimer and delete do the exact same thing for timer handles.
Forum: Scripting 10-06-2017, 07:13
Replies: 18
Views: 474
Posted By WildCard65
Re: Invalid Timer Handle

I'm going to mention something that I'm surprised no one else picked up, the error the plugin is encountering is HandleError 1 (HandleError_Changed...
Forum: Scripting 10-04-2017, 21:05
Replies: 18
Views: 474
Posted By WildCard65
Re: Invalid Timer Handle

Internally in SourceMod, Handles (as seen by SM plugins) are nothing more then an array index to an object stored inside a global array of sourcemod.logic.<binary extension>, said object stores a...
Forum: Scripting 10-03-2017, 12:04
Replies: 10
Views: 261
Posted By WildCard65
Re: Passing multiple data with RequestFrame

Rule of thumb with handling anything considered "async" like RequestFrame (not enforced, but HIGHLY RECOMMENDED)

Never pass RAW entity/client indexes (except 0 or -1) as callback data, instead use...
Forum: Scripting 10-03-2017, 11:56
Replies: 15
Views: 490
Posted By WildCard65
Re: How to convert "const String:var[]" to new syntax

While, your advice is helpful and could potentially be the solution to the warning, I was just asking out of curiosity more so then as a "hey, maybe you should check". By having the declaration of...
Forum: Scripting 10-02-2017, 09:42
Replies: 15
Views: 490
Posted By WildCard65
Forum: Scripting 09-19-2017, 12:18
Replies: 3
Views: 126
Posted By WildCard65
Re: Hooking say

Why not use OnClientSayCommand (https://sm.alliedmods.net/new-api/console/OnClientSayCommand)
Forum: Scripting 09-13-2017, 12:36
Replies: 3
Views: 129
Posted By WildCard65
Re: Altering in-game chat

Use OnClientSayCommand
Forum: Scripting 09-13-2017, 10:08
Replies: 8
Views: 261
Posted By WildCard65
Re: Refiring OnClientAuthorized

I can safely say it won't create any crashes.
Forum: Scripting 09-12-2017, 14:19
Replies: 16
Views: 397
Posted By WildCard65
Re: [CSGO] Problem with GetClientName?

client indexes range from 1 up to (and including) MaxClients' value (with 0 being the world itself).
Forum: Scripting 09-12-2017, 07:50
Replies: 16
Views: 397
Posted By WildCard65
Re: [CSGO] Problem with GetClientName?

I recommend adding a check for invalid client indexes.
Forum: Scripting 09-10-2017, 09:45
Replies: 5
Views: 364
Posted By WildCard65
Re: Difference between OnClientSayCommand & AddCommandListener?

OnClientSayCommand is recommended over using AddCommandListener for hooking player chat (something about using AddCommandListener is prone to double chat messages)
Forum: Scripting 09-10-2017, 08:12
Replies: 2
Views: 158
Posted By WildCard65
Re: How can I make a plugin run only for me?

If your planning on implementing something like that, you must NEVER distribute the plugin, otherwise it can and will be blacklisted from being loaded by EVERY installation of SourceMod (by hash)
Forum: Scripting 09-09-2017, 18:55
Replies: 2
Views: 119
Posted By WildCard65
Re: PushArrayArray argument 2 error

Also, your creating the ArrayLists wrong

the blocksize parameter is the number of cell blocks per index (for arrays)

the_servers = CreateArray(); // 1 block per index should be enough for...
Forum: Scripting 09-09-2017, 18:49
Replies: 7
Views: 284
Posted By WildCard65
Re: Kick client with ᅚᅚ (blank) name.

Instead of using ServerCommand try:

public OnClientPostAdminCheck(client){
if(!IsFakeClient(client))
{
new String:clientName[32];
GetClientName(client, clientName, sizeof(clientName));...
Forum: Scripting 09-09-2017, 14:11
Replies: 12
Views: 276
Posted By WildCard65
Re: Invalid Handle Error (With Timers)

That'll cause a native error (in CloseHandle native) for
A) The data handle (if available AND auto handle free flag is set)
B) The timer handle
Forum: Scripting 09-09-2017, 08:58
Replies: 12
Views: 276
Posted By WildCard65
Re: Invalid Handle Error (With Timers)

Timers automatically destroy themselves upon completion (as in no longer going to be calling your plugin's callback function).
Forum: General 09-09-2017, 08:53
Replies: 15
Views: 1,161
Posted By WildCard65
Re: New valve update

The support was baked directly into "CreateEntityByName"
Forum: General 09-09-2017, 08:40
Replies: 7
Views: 245
Posted By WildCard65
Re: Compile problem

Reference:
https://github.com/alliedmodders/sourcemod/commit/416abd81a16f2d3bc3bd50770bca2bf485a5c00f#diff-2940b07806477dea08bbe175fd15a441 (1.8:...
Forum: General 09-07-2017, 14:53
Replies: 7
Views: 245
Posted By WildCard65
Re: Compile problem

Everything but the MYSQL extension should compile with VS 2015, unless you're compiling against the latest 1.9 SM branch.
Forum: Scripting 08-29-2017, 09:34
Replies: 2
Views: 141
Posted By WildCard65
Re: Plugin make server crash without warning

That shouldn't of caused a crash, worst case scenario would be Call_PushCell throwing a native error with message corresponding with "SP_ERROR_PARAM"
Forum: Scripting 08-27-2017, 08:12
Replies: 11
Views: 445
Posted By WildCard65
Re: Exception reported: Invalid database Handle 0 (error: 4)

I see your problem, you never bail out (and report error) upon connection failure.


if (g_pDb == INVALID_HANDLE)
{
g_pDb = SQL_Connect("main_db", false, szError, sizeof(szError));

if...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 10:09.


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