Skip to content

VECTOR_get_val

BigETI edited this page Jul 17, 2018 · 2 revisions

Description

Get a value from the vector at the specified index

Syntax

VECTOR_get_val(Vector:vector, index)

Example

new Vector:vector;
VECTOR_push_back_val(vector, 10);
VECTOR_push_back_val(vector, 20);
VECTOR_push_back_val(vector, 30);
printf("Value: %d", VECTOR_get_val(vector, 1));

Clone this wiki locally