View Single Post
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 07-31-2016 , 01:19   Re: [INC] Data String Parameter
Reply With Quote #2

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:
//Somewhere in the vast emptiness of a plugins source code
char sBuffer[12];
strcopy(sBuffersizeof(sBuffer), "Carrot");
FunctionCall(sBuffer)

void FunctionCall(const char sBuffer[])
{
    
//Do stuff

KyleS is offline