[INC] Data String Parameter
1 Attachment(s)
I got tired of having to create data packs manually or convert between strings and handles to be able to pass a string through a data parameter so I made these stocks.
Note: If there's a better method of doing this that already exists, let me know as I would LOVE to know it. Note2: I know you can convert a handle to a string which you can also do but this seems less like a disaster. Code:
#if defined _data_string_parameter_included_ Code:
#include <sourcemod> |
Re: [INC] Data String Parameter
Your example looks broken :(
Why would anyone ever need this? You'd simply pass const char sBuffer into the function call. If you need multiple, pass the amount and use [][]. This seems a little insane :( PHP Code:
|
Re: [INC] Data String Parameter
Because you can't pass an array into a non-array parameter.
|
Re: [INC] Data String Parameter
Quote:
Code:
public void OnPluginStart() This works: Code:
#include <sourcemod> Quote:
|
Re: [INC] Data String Parameter
Check out DString, it should accomplish what you are doing with a few other
|
All times are GMT -4. The time now is 10:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.