01.07.2012, 11:44
That's not how it works, you need to assign a variable to an object when creating it:
pawn Code:
new obj;
public OnGameModeInit() {
obj = CreateObject(...);
return 1;
}
// and then you can use
DestroyDynamicObject(obj);