Though if you want to have several text-objects you have to do it this way

Code:
#include <acknex.h>
#include <default.c>

TEXT** myTextArray;

function main()
{
   int numberOfNeededTextObjects;
   myTextArray = (TEXT**)malloc((int)sizeof(TEXT*)*numberOfNeededTextObjects);

   //Now you can acces the text objects in following manner
   (myTextArray.layer)[0] = 25;
   (myTextArray.pos_x)[0] = 100;
   and so on...
}



EDIT: Oh yeah I forgot to mention.
You should make an exit-function which frees the memory again if you use malloc. Like
Code:
#include <acknex.h>
#include <default.c>

on_esc = myExitFunction;

function myExitFunction()
{
    free(myTextArray);
}


greetings
KDuke

Last edited by KDuke; 03/17/09 21:23.

Using A7 Free
Click and join the 3dgs irc community!
Room: #3dgs