Bz APIIntList

From BZFlagWiki
Revision as of 08:57, 6 October 2011 by (Talk) (Usage: Delete the list for proper memory management as an example.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

An array of integers. This is used for passing lists of integers from the BZFS API itself to the plugin that uses the API.


bz_APIIntList *playerList = bz_newIntList();
int i;
for (i=0;i<playerList->size();i++) {
        // Use (*playerlist)[i] to grab the integer.
        bz_sendTextMessage(BZ_SERVER,(*playerlist)[i],"Welcome to the server!");