Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 21 of 21
Search took 0.00 seconds.
Search: Posts Made By: McSnaggit
Forum: General 05-30-2023, 03:02
Replies: 2
Views: 887
Posted By McSnaggit
Re: Mysql Database SSL insecure connection

Thanks for replying Asherkin! I'll find another solution.
Forum: General 05-26-2023, 06:25
Replies: 2
Views: 887
Posted By McSnaggit
Mysql Database SSL insecure connection

Hi all,

I have an issue with connection to my MySQL database. I'm hosting it on Planetscale. I've configured everything in databases.cfg and set a new database handle.

The problem is that I...
Forum: Scripting 01-29-2020, 10:48
Replies: 4
Views: 1,199
Posted By McSnaggit
Re: (CSGO) Level down hook armsrace

I am using "int currentAttackerLevel = GetEntProp(GetPlayerResourceEntity(), Prop_Send, "m_iGunGameLevel", _, attackerId);" for getting the current level of the player. So I can indeed see the...
Forum: Scripting 01-29-2020, 05:32
Replies: 4
Views: 1,199
Posted By McSnaggit
Re: (CSGO) Level down hook armsrace

Thanks for your reply.

I know that's a solution, and I am already using that. But I should also be checking for suicide and death by world and trigger hurt.

The thing is, that it requires me to...
Forum: Scripting 01-29-2020, 04:04
Replies: 4
Views: 1,199
Posted By McSnaggit
(CSGO) Level down hook armsrace

Hi all,

I am still in progress of developing a statistics plugin for my armsrace server (CSGO). I now also log when a player goes level up. This is done with the "ggprogressive_player_levelup"...
Forum: Scripting 04-16-2019, 08:31
Replies: 12
Views: 3,680
Posted By McSnaggit
Re: Knife detection

I have found the StrContains function that can do the trick too. It's like eyal282's solution but a little different.

I use it like so:

if(StrContains(weapon, "knife", false) > -1){
//Weapon...
Forum: Scripting 03-29-2019, 05:56
Replies: 12
Views: 3,680
Posted By McSnaggit
Re: Knife detection

Had that problem too. Edit the thread in advanced mode. Next to title select solved in the dropdown.
Forum: Scripting 03-26-2019, 08:47
Replies: 11
Views: 2,983
Posted By McSnaggit
Re: Enum or array inside query callback

So the above code is OK? Or should I send it to the callback and after sending in the same function close it again?

So like this:



public void SQL_Insert_Death(Database db, DBResultSet...
Forum: Scripting 03-26-2019, 03:41
Replies: 11
Views: 2,983
Posted By McSnaggit
Re: Enum or array inside query callback

Great!

One question about the datapacks. When I want to send the datapack through to a second callback. Can I use it again without deleting it, or do I need to delete it first and create it again?...
Forum: Scripting 03-25-2019, 04:29
Replies: 11
Views: 2,983
Posted By McSnaggit
Re: Enum or array inside query callback

Wow, thanks guys. I knew there was something that I missed. I'm still learning sourcepawn as I am used to javascript.

I'm going to try this asap.

About the transitional syntax. I have read...
Forum: Scripting 03-24-2019, 12:12
Replies: 11
Views: 2,983
Posted By McSnaggit
Enum or array inside query callback

Hi all,

I'm having trouble with sending parameters in my threaded query callback. The thing is that I need more than 1 variable to pass through to the callback.

Background Information
When a...
Forum: Scripting 03-24-2019, 11:54
Replies: 14
Views: 5,931
Posted By McSnaggit
Re: Client index vs user id vs real player index

@CliptonHeist I use an AI value because I don't think foreign keys kan be characters, like the steamID2. I do use the steamId to verify if the user exists but I use the id of the table as a foreign...
Forum: Scripting 03-22-2019, 05:23
Replies: 14
Views: 5,931
Posted By McSnaggit
Re: Client index vs user id vs real player index

I might not have been clear enough about the user ids (all these different terms right).

Database
In my database when I create a new player with a steamId, that player gets an autoincremented...
Forum: Scripting 03-21-2019, 09:33
Replies: 14
Views: 5,931
Posted By McSnaggit
Re: Client index vs user id vs real player index

Thank you all for replying!

@Mitchell, thanks for clarifying the different ids. I had no idea that 1 and 3 are the same. That explains a lot.

@Dragokas, that sounds logical. The "problem" is...
Forum: Scripting 03-20-2019, 10:03
Replies: 14
Views: 5,931
Posted By McSnaggit
Re: Client index vs user id vs real player index

I do that too. But when inserting a new event like a kill, I need the user id in the database. To fasten things, I can then use the array on the player id to find out the database id.

So if player...
Forum: Scripting 03-20-2019, 09:12
Replies: 14
Views: 5,931
Posted By McSnaggit
Client index vs user id vs real player index

Hi all,

I'm busy with a plugin for armsrace that saves stats to the database. Every time a user connects I want to add him to the database if he doesn't exist. After that, or if he already...
Forum: Scripting 02-13-2019, 07:37
Replies: 9
Views: 4,005
Posted By McSnaggit
Re: Adt Arrays

Thank you all for responding!

I have looked a lot at different plugins, and it might be that I just don't understand the workings (still learning a lot), but I cannot seem to find a plugin that...
Forum: Scripting 02-13-2019, 03:24
Replies: 9
Views: 4,005
Posted By McSnaggit
Re: Adt Arrays

I'm not sure if I'm allowed to reply to an old thread, but this has certainly something to do with the subject. What if I wanted it the other way around. I would like to create an array of strings...
Forum: Scripting 02-12-2019, 14:55
Replies: 2
Views: 1,940
Posted By McSnaggit
Re: Saving data in multidimensional array/object (CSGO)

Thank you for replying so quickly.

About storing the client stats:
I was thinking about only saving that data if the client played the entire match (we always play with friends only). Therefore I...
Forum: Scripting 02-12-2019, 10:31
Replies: 2
Views: 1,940
Posted By McSnaggit
Saving data in multidimensional array/object (CSGO)

Hi,

I'm new here and have been searching for a good solution for my CSGO plugin for a while now and haven't found it yet. I have some experience with javascript and can understand a bit of the...
Forum: Scripting 02-12-2019, 10:16
Replies: 1
Views: 1,535
Posted By McSnaggit
Re: Knife kill sound plugin

I'm just starting with writing my own plugin so I'm not sure if this is of any help. Shouldn't you put brackets around the StrEqual? Like this:


if ((StrEqual(weapon, "knife")) ||...
Showing results 1 to 21 of 21

 
Forum Jump

All times are GMT -4. The time now is 18:56.


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