Posted By: peteredlin
Some confusion about pointers - 12/29/10 16:09
Hi, i am new to pointers and dealing with them..
i got the folliwing code which i cant figure out how to work right:
I get an error in main called SYS..
I want to load box with the pointer 'ent'
i got the folliwing code which i cant figure out how to work right:
Code:
/////////////////////////////// #include <acknex.h> #include <default.c> #include <ackphysx.h> /////////////////////////////// function Create_ent(ENTITY**ent,char*filename,VECTOR*position) { ent = ent_create(filename,position,NULL); } ENTITY* box; function main() { physX_open(); level_load("level.hmp"); Create_ent(box,"cube.mdl",vector(0,0,0)); box.x=90; }
I get an error in main called SYS..
I want to load box with the pointer 'ent'