native

ArraySwap

Syntax

native ArraySwap(Array:which, item1, item2);

Description

Swaps the position of two items.

Parameters

which Array handle
item1,item2 Item pair to swap

Return

This function has no return value.

Error

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