Raised This Month: $119 Target: $400
 29% 

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Peace-Maker
Forum: Extensions 11-21-2020, 13:33
Replies: 19
Views: 7,337
Posted By Peace-Maker
Forum: General 11-09-2020, 12:37
Replies: 4
Views: 802
Posted By Peace-Maker
Re: does sm supports utf8mb4?

You have to set the characterset (https://sm.alliedmods.net/new-api/dbi/Database/SetCharset) you want to use for every connection and during creation of the database and tables.
Forum: Plugins 11-05-2020, 08:55
Replies: 6
Views: 4,388
Posted By Peace-Maker
Re: [ANY] Connect 4 minigame

No, it should run fine on any upcoming SourceMod version. What problems did you encounter?
Old .smx will always load on newer SourceMod versions on the gameserver.
Forum: Extensions 10-28-2020, 20:42
Replies: 805
Views: 424,444
Posted By Peace-Maker
Re: DHooks (Dynamic Hooks - Dev Preview)

https://forums.alliedmods.net/showthread.php?p=2442574#post2442574
https://forums.alliedmods.net/showthread.php?p=2616934#post2616934...
Forum: Extensions 10-28-2020, 09:01
Replies: 19
Views: 7,337
Posted By Peace-Maker
Re: SRCDS command-line autocompletion 1.0.1

Does it crash when you press tab or on load?

Here's another build compiled with clang, but the one in the release was as well, so not sure why those loading errors occur.
Forum: Extensions 10-25-2020, 11:42
Replies: 805
Views: 424,444
Posted By Peace-Maker
Re: DHooks (Dynamic Hooks - Dev Preview)

You can replace all occurences of "GameData" with "Handle" in the file to compile with pre 1.10 includes.
Forum: General 10-21-2020, 04:32
Replies: 4
Views: 802
Posted By Peace-Maker
Forum: Extensions 10-17-2020, 06:28
Replies: 805
Views: 424,444
Posted By Peace-Maker
Re: DHooks (Dynamic Hooks - Dev Preview)

I've put up a new version detours15 which adds a methodmap API for your pleasure. Call arguments are saved before calling the function now by default too, so it's save to access the parameters in a...
Forum: Scripting 10-16-2020, 13:12
Replies: 9
Views: 702
Posted By Peace-Maker
Re: Return arrays in ArrayLists by reference

If the number of players is low like 4 you could just add "player1", "player2", "player3" manually, but that's ugly. You could define a maximum number of simultaneous games and reference another...
Forum: Scripting 10-12-2020, 05:55
Replies: 9
Views: 702
Posted By Peace-Maker
Re: Return arrays in ArrayLists by reference

You can specify which index inside the arraylist entry you get or set using the ArrayList.Get or ArrayList.Set natives ' "block" parameter.

When creating the ArrayList, you set the blocksize to be...
Forum: General 08-20-2020, 11:32
Replies: 2
Views: 502
Posted By Peace-Maker
Re: [ANY] Don't be shy! Post a reply!

A lot of the questions seem to be asked in Discord or IRC simultaneously and the answer isn't forwarded to the forums. Low effort questions receive lower effort to no answers as you said :D
Forum: Scripting 08-20-2020, 11:01
Replies: 2
Views: 513
Posted By Peace-Maker
Re: SetFilePermissions not working

Are you able to change the file permissions of other files? Maybe the demo file is still in use.
I'm not sure if sourcemod's file natives work with absolute paths outside the game directory.
Forum: Extensions 08-19-2020, 09:27
Replies: 26
Views: 7,780
Posted By Peace-Maker
Re: [ANY] VoiceHook

Part of this extension was included in SourceMod 1.11 recently.
https://github.com/alliedmodders/sourcemod/pull/1247

Accelerator74 added two forwards
/**
* Called when a client is speaking.
...
Forum: Scripting 07-10-2020, 09:40
Replies: 2
Views: 554
Posted By Peace-Maker
Re: Storing Multiple Variables for DB query

I don't understand what you're trying to do, but the auto incremented id of the INSERT query can be accessed using results.InsertId https://sm.alliedmods.net/new-api/dbi/DBResultSet/InsertId
Forum: Scripting 06-15-2020, 11:56
Replies: 5
Views: 626
Posted By Peace-Maker
Re: MySql Special Caracters Store Problem

Don't forget to call SQL_SetCharset(g_hDataBase, "utf8mb4"); too!
Forum: Extensions 06-15-2020, 11:26
Replies: 112
Views: 55,492
Posted By Peace-Maker
Re: CollisionHook

Have you tried this updated version?
https://forums.alliedmods.net/showthread.php?p=2592634#post2592634
Forum: Scripting 06-15-2020, 08:07
Replies: 28
Views: 1,449
Posted By Peace-Maker
Re: Need help with compileing my sp plugin.

But.. those aren't new errors? They are the exact same you posted a screenshot of earlier and Weetabix told you how to fix it and they are fixed in the script Kellan123 posted as well. If you ask...
Forum: Scripting 06-15-2020, 05:59
Replies: 28
Views: 1,449
Posted By Peace-Maker
Re: Need help with compileing my sp plugin.

Hm, that error was already addressed in this thread, didn't you try what was suggested or even check out the fixed script posted by Kellan123?

When looking at all the differences between the lines...
Forum: Scripting 06-14-2020, 11:55
Replies: 28
Views: 1,449
Posted By Peace-Maker
Re: Need help with compileing my sp plugin.

"it didn't work" isn't a great description of an error. If you really want to get help, consider providing as much information to understand and replicate your issue as possible including the exact...
Forum: Scripting 06-14-2020, 07:26
Replies: 28
Views: 1,449
Posted By Peace-Maker
Re: Need help with compileing my sp plugin.

I'm talking about the compiler version, not the version of the spedit editor.
Which plugin are you having trouble compiling other than your own one? As Chrissy pointed out, you have lots of typos...
Forum: Scripting 06-13-2020, 07:04
Replies: 28
Views: 1,449
Posted By Peace-Maker
Re: Need help with compileing my sp plugin.

Please post the full output of spcomp including the compiler version you're using and a link to the plugin you're trying to compile.

You might mix different include versions with different...
Forum: Scripting 06-12-2020, 06:46
Replies: 9
Views: 733
Posted By Peace-Maker
Re: Client index 0 is invalid

The attacker and inflictor parameters can be 0 for e.g. fall damage.
Forum: Scripting 06-12-2020, 06:38
Replies: 6
Views: 613
Posted By Peace-Maker
Re: Fix this > Array-based enum structs will be removed in 1.11.

Interesting. That looks like a bug to me since it works with the 1.11 compiler.

You can work around it like this:
int g_iCounterRoles[view_as<int>(Role_Max)];
Forum: Scripting 06-12-2020, 06:24
Replies: 28
Views: 1,449
Posted By Peace-Maker
Re: Need help with compileing my sp plugin.

Make sure to run the compiler next to the "include" folder. Easiest would be to just extract the scripting folder of the sourcemod release and run the compiler in that folder.

#include <sourcemod>...
Forum: Scripting 06-12-2020, 06:08
Replies: 6
Views: 613
Posted By Peace-Maker
Re: Fix this > Array-based enum structs will be removed in 1.11.

https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs

There is a new syntax for this kind of data structure which you can switch to, but the way you're using it, as an index into...
Showing results 1 to 25 of 500

 
Forum Jump

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


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