Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 61
Search took 0.01 seconds.
Search: Posts Made By: IceCucumber
Forum: Scripting 04-06-2016, 15:11
Replies: 921
Views: 316,827
Posted By IceCucumber
Re: New API and Syntax

Huh. Well, hopefully it gets fixed eventually :bacon!:
Forum: Scripting 04-05-2016, 21:45
Replies: 921
Views: 316,827
Posted By IceCucumber
Re: New API and Syntax

I'm getting a


I'm declaring this in global scope if that makes any difference.
Forum: Scripting 04-04-2016, 14:48
Replies: 921
Views: 316,827
Posted By IceCucumber
Re: New API and Syntax

Hi, quick question about this new syntax.

How does this convert? Is there such a thing as const char?

new const String:foo[] = "bar";

I tried:
const char foo = "bar";

But it gives me a
Forum: Plugin/Gameplay Ideas and Requests 01-26-2016, 08:47
Replies: 6
Views: 1,405
Posted By IceCucumber
Re: [REQ][TF2]Mute all

edit: You're better off using Mitchell's plugin from below, it's more versatile.

This should probably work


#pragma semicolon 1

#include <sourcemod>
#include <basecomm>
Forum: Extensions 07-01-2015, 08:38
Replies: 253
Views: 279,361
Posted By IceCucumber
Re: [EXTENSION] cURL & Hash

Yeah, it works. Thanks.
Forum: Extensions 07-01-2015, 08:27
Replies: 253
Views: 279,361
Posted By IceCucumber
Re: [EXTENSION] cURL & Hash

Is this compatible with SM 1.7?

Trying to compile the example files, I get a bunch of
Forum: Scripting 05-12-2015, 15:30
Replies: 2
Views: 1,568
Posted By IceCucumber
Re: SQL_GetRowCount

Ah. Thank you.
Forum: Scripting 05-12-2015, 15:16
Replies: 2
Views: 1,568
Posted By IceCucumber
SQL_GetRowCount

Hey. I'm running into some confusion with SourceMod's SQL_GetRowCount.

I'm able to create tables, insert/update data etc. But the following code always returns 1:

// Get number of rows in table...
Forum: Scripting 12-11-2014, 09:15
Replies: 0
Views: 294
Posted By IceCucumber
Processing remote XML

Hi. I'm interested in using remote XML data for my SourceMod plugins, mainly the Steam profile data (eg. http://steamcommunity.com/profiles/76561197960265730/?xml=1 )

I assume I'd need extensions...
Forum: Scripting 11-20-2014, 17:25
Replies: 5
Views: 1,300
Posted By IceCucumber
Forum: Scripting 11-20-2014, 10:23
Replies: 8
Views: 2,176
Posted By IceCucumber
Re: How to create a level plugin?

Something like this? GivePrefix is fictitious, you could try what splewis mentioned above, or SetClientInfo(client, "name", "name here") or something.


new kills[MAXPLAYERS+1]; // Array to store...
Forum: Scripting 11-20-2014, 09:41
Replies: 5
Views: 1,300
Posted By IceCucumber
Re: Some help with SQL_PrepareQuery?

Ah yes, pardon the lack of clarity. The column is called "count" indeed. Maybe not the most descriptive name.

I tried

Format(sqlString, sizeof(sqlString), "INSERT INTO test2 (steamid, name)...
Forum: Scripting 11-20-2014, 08:06
Replies: 5
Views: 1,300
Posted By IceCucumber
Some help with SQL_PrepareQuery and syntax?

I'm trying to insert a row into a table, and then increment an integer value ("count"), using prepared statements, but I'm running into some issues with my syntax.
I've removed the variables for...
Forum: Plugins 11-10-2014, 11:19
Replies: 7
Views: 13,686
Posted By IceCucumber
Re: CIDR Block - Block IP ranges for countries, hackers

I think there's something wrong with the comments detection. With


I trigger the LogError("CIDR prefix 0, clamping to 32. %s", cidr_string) at line 133, whereas just

works fine.
Forum: Scripting 10-25-2014, 21:24
Replies: 2
Views: 1,156
Posted By IceCucumber
Re: CS:S func_rotating

Something like this? You could save the entity index(es) in a global variable for use elsewhere.


public OnEntityCreated(entity, const String:classname[])
{
if (StrEqual(classname,...
Forum: Scripting 10-25-2014, 21:09
Replies: 9
Views: 4,226
Posted By IceCucumber
Re: Setting eye angles

Thanks, no luck with m_angEyeAngles either. I was trying to do this for Neotokyo. Can't be bothered to set up a dedicated server for other games, but I'm pretty sure Neotokyo just doesn't support...
Forum: Scripting 10-25-2014, 16:50
Replies: 9
Views: 4,226
Posted By IceCucumber
Setting eye angles

Hello,

I'm trying to basically turn a player around. Getting no errors, but this doesn't affect my view direction in the slightest.
Any ideas? Am I editing the correct vector? Is there a...
Forum: Scripting 10-17-2014, 08:47
Replies: 0
Views: 638
Posted By IceCucumber
Trouble modifying cvar flags

Edit: I believe this answers my question: https://forums.alliedmods.net/showthread.php?t=92289
Pardon me, should've googled more intensively before making a thread.

I'm trying to toggle whether...
Forum: Scripting 10-01-2014, 17:09
Replies: 6
Views: 1,612
Posted By IceCucumber
Re: Little help with fetching keyvalues

new String:section[64];

KvRewind(kv);

KvGetSectionName(kv, section, sizeof(section));
PrintToServer("section: %s", section);

KvGotoFirstSubKey(kv); // shouldn't we be at "lowerlevel" now,...
Forum: Scripting 10-01-2014, 16:27
Replies: 6
Views: 1,612
Posted By IceCucumber
Little help with fetching keyvalues

Hello,

I've been playing around with keyvalues a bit, but am having difficulty retrieving values.
My keyvalues file looks something like this:
And the code (i'm trying to return the value of...
Forum: Scripting 08-07-2014, 15:26
Replies: 4
Views: 1,253
Posted By IceCucumber
Re: Replace a string's character inside a loop

Thanks, both of you. This seems to be working fine. :crab:
Forum: Scripting 08-07-2014, 15:01
Replies: 4
Views: 1,253
Posted By IceCucumber
Re: Replace a string's character inside a loop

Right. How would I go about editing (removing) the character numbered i from the string? strcopy(message[i], sizeof(message), "");Didn't seem to work.
Forum: Scripting 08-07-2014, 12:53
Replies: 4
Views: 1,253
Posted By IceCucumber
Replace a string's character inside a loop

I'm attempting to remove all non-alphanumeric characters from a string to later check it against some phrases. If someone could help me with this I'd appreciate it.

...
Forum: Scripting 07-19-2014, 21:44
Replies: 19
Views: 10,505
Posted By IceCucumber
Forum: Scripting 07-19-2014, 20:56
Replies: 19
Views: 10,505
Posted By IceCucumber
Re: The annoying "loose indentation" warning, how to get rid of them?

I'm getting the warning with this sort of format, any idea what the compiler would like instead? More spaces around the parenthesis...?

if ((StrContains(msg, "foo")) && (StrContains(msg, "bar")))...
Showing results 1 to 25 of 61

 
Forum Jump

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


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