Raised This Month: $342 Target: $400
 85%   Almost there!

Showing results 1 to 25 of 46
Search took 0.01 seconds.
Search: Posts Made By: I am inevitable
Forum: Scripting 09-11-2019, 12:34
Replies: 11
Views: 1,425
Posted By I am inevitable
Re: [HELP] Get All Cmd Args

u probably need to escape the string, as colons splits them
Forum: Scripting 09-01-2019, 13:56
Replies: 6
Views: 2,479
Posted By I am inevitable
Re: Scripting ConVar

ServerCommand is already sent using rcon, so get rid of sm_rcon.
Forum: Plugin/Gameplay Ideas and Requests 09-01-2019, 03:05
Replies: 10
Views: 1,713
Posted By I am inevitable
Re: [REQ] Chat for sertain flags

#include <sourcemod>

#pragma semicolon 1

public void OnPluginStart()
{
RegAdminCmd("sm_vm", Cmd_VM, ADMFLAG_CUSTOM1);
}

public Action Cmd_VM(int iClient, int iArgs)
Forum: Scripting 07-29-2019, 13:56
Replies: 5
Views: 969
Posted By I am inevitable
Re: Problem with CreateTimer: function prototyps do not match

Its because you have to create the timer before writing
Forum: Scripting 07-29-2019, 13:54
Replies: 13
Views: 1,435
Posted By I am inevitable
Re: Player data in not inserting into DB Corectly

`%s`);", SafeName,

right here, can there even be a big space here between?

on the first query
Forum: Scripting 07-22-2019, 16:55
Replies: 7
Views: 1,201
Posted By I am inevitable
Forum: Scripting 07-22-2019, 15:32
Replies: 7
Views: 1,201
Posted By I am inevitable
Re: [KeyValues] All Messages sent in same moment

yeah, my bad.

it's expecting a string, not an int
Forum: Suggestions / Requests 07-22-2019, 15:30
Replies: 2
Views: 532
Posted By I am inevitable
Forum: Scripting 07-19-2019, 16:11
Replies: 12
Views: 1,645
Posted By I am inevitable
Forum: Scripting 07-17-2019, 13:32
Replies: 7
Views: 1,201
Posted By I am inevitable
Re: [KeyValues] All Messages sent in same moment

#pragma semicolon 1

#define DEBUG

char file[512];

int g_iAd;

#define PLUGIN_AUTHOR "SpirT"
#define PLUGIN_VERSION "1.0"
Forum: Scripting 07-17-2019, 13:25
Replies: 12
Views: 1,645
Posted By I am inevitable
Re: Read KeyValues File

void RefreshClientWeapons(int iClient)
{
for (int i = 4; i < 4; i++)
{
int iWeapon_Entity_Index = GetPlayerWeaponSlot(iClient, i);

if (iWeapon_Entity_Index != -1)
{...
Forum: Scripting 07-16-2019, 12:31
Replies: 17
Views: 1,833
Posted By I am inevitable
Re: [HELP] help with int, for loop...

What do you mean waste of time?

Adding an extra if statement, exculding invalid player indexes is a waste of time? Well so be it. I bet he'd prefer "wasting time", than getting error logs.
Forum: Snippets and Tutorials 07-14-2019, 13:43
Replies: 6
Views: 2,884
Posted By I am inevitable
Re: Writing good code, solving problems.

Okay cool, I didn't know, ty ^^
Forum: Snippets and Tutorials 07-14-2019, 12:18
Replies: 6
Views: 2,884
Posted By I am inevitable
Forum: Snippets and Tutorials 07-14-2019, 11:04
Replies: 6
Views: 2,884
Posted By I am inevitable
Writing good code, solving problems.

Hi.

Reading code off the internet sometimes triggers me. I immediately start thinking: "hmm, why didn't you that, or that?". (I'm not trying to be that smartass or anything, and I'm by any means...
Forum: Scripting 07-12-2019, 18:16
Replies: 12
Views: 1,645
Posted By I am inevitable
Re: Read KeyValues File

"do you think I'm new to this?", Okay, then you clearly should see what's wrong and you would probably be able to solve the issue yourself.

Drop the attitude, I'm telling you what's wrong, and...
Forum: Scripting 07-11-2019, 16:31
Replies: 6
Views: 1,080
Posted By I am inevitable
Re: How to change string into int?

You might wanna have a space on PrintToChatAll(""); in the beginning, because for some reason, color codes as first character isn't readable.
Forum: Scripting 07-11-2019, 16:28
Replies: 12
Views: 1,645
Posted By I am inevitable
Re: Read KeyValues File

Nope, it only reads the sections, and the FIRST sub keys.

"MyFile"
{
"section" // GetSectionName to get here
{
"first sub key" // GoToFirstSubKey to get here
{
"second sub key" //...
Forum: Scripting 07-10-2019, 10:51
Replies: 2
Views: 845
Posted By I am inevitable
Re: Getting weapon entity index by classname

damn that worked better than I expected.

thanks m8

okay, so here's an updated version of your logic, looping through every weapon the client has:
stock int GetWeaponEntityIndexByClassname(int...
Forum: Scripting 07-10-2019, 09:47
Replies: 20
Views: 1,438
Posted By I am inevitable
Re: how can you scan a variable and then apply it?

Yeah, you're completely right. My bad.

Here's a way of safely setting convar values (strings in this case):

void something()
{
// find the convar
ConVar hConVar = FindConVar("");
...
Forum: Scripting 07-10-2019, 09:44
Replies: 2
Views: 845
Posted By I am inevitable
Getting weapon entity index by classname

Yeah, how?

Is this even possible?

I ran some tests, getting and printing the entity index of my weapons in different contexts, and it seems like they're dynamic.
Forum: Scripting 07-09-2019, 19:50
Replies: 20
Views: 1,438
Posted By I am inevitable
Forum: Scripting 07-09-2019, 19:48
Replies: 8
Views: 1,019
Posted By I am inevitable
Forum: Scripting 07-09-2019, 16:10
Replies: 8
Views: 1,019
Posted By I am inevitable
Forum: Scripting 07-09-2019, 16:00
Replies: 8
Views: 1,019
Posted By I am inevitable
Re: loops through weapons

there's nothing wrong with my code, and if you didn't notice, I marked the thread as solved way before I got responses.
Showing results 1 to 25 of 46

 
Forum Jump

All times are GMT -4. The time now is 12:03.


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