Why not pass string max length as always (default value = 0) and in the function check:
if the length is > 0 - Get
if the length is <= 0 - Set
PHP Code:
SetGetFunction(String:myString[], stringMaxLength = 0)
{
if (stringMaxLength > 0) { // get
strcopy(myString, stringMaxLength, SomeStringTakenFromSomewhere);
} else { // set
strcopy(SomeStringTakenFromSomewhere, sizeof(SomeStringTakenFromSomewhere), myString);
}
}
P.S.: If you totally want to do this sh*t...
__________________