1 2
|
int aCheckpoint[2];
IModel* aCheckpoints;
|
Last edited on
yeah but aCheckpoints is not initialized
what do i have to do to correct it?
what do you want to do with it?
What's the return type of CreateModel?
btw. line 1 and 3 have the same name.
Last edited on
on line 3 i want to use the array is right how i call it? and CreateModel are the coordinates to place the checkpoint
nah, that's not right.
aCheckpoints is an array of integers, so you have to declare a pointer to an integer.
Furthermore they must not have the same name.
I think you want to store Objects of type IModel in the array so change the int to IModel
1 2 3 4 5
|
IModel aCheckpoint[2];
IMesh* mCheckpoint = myEngine->LoadMesh("Checkpoint.x");
IModel* aCheckpoints = aCheckpoint;
aCheckpoint[0] = mCheckpoint->CreateModel(0, 0, 0);
aCheckpoint[1] = mCheckpoint->CreateModel(0, 0, 100);
|
Last edited on