native

PopStackString

Syntax

native bool:PopStackString(Stack:handle, buffer[], maxlength, &written = 0);

Description

Pops a string value from a stack.

Parameters

handle Stack handle
buffer Buffer to copy string to
maxlength Maximum size of the buffer
written Variable to store number of characters copied to

Return

True on success, false if the stack is empty

Error

If an invalid handle is provided an error will be thrown.