- Code: Select all
int index = ActorCount("HP");
index -= 1;
char buffer[255];
char name[255] = "HP."
buffer = (char)index;
name = strcat(name, buffer);
DestroyActor(name);
It gives an error of something like "cannot convert from 'char' to 'ARY[255]char'
Can someone please tell me what I'm doing wrong? Or even better please tell me there's an easier way to do this???