12.12.2014, 17:07
Quote:
What?
I didn't quite understand you there? 'Add a variable to the dealership enum'? This is a script where I can create dealerships dynamically in-game, therefore it'd be obvious that some command of teleporting to each one would be useful. And no, the default X Y Z of the dealership isn't set to 0 0 0 because as I've already explained it above and in my original post, it is created dynamically and I can teleport to bassicly all of them /BUT/ if I enter an invalid ID I'll get teleported to 0 0 0 because that ID doesn't have any teleportation coordinates, I hope you understood me now? Thanks for attempting to assist anyways |
Add a "Created" variable to the enumerator (or however you're organizing the data for the dealerships) so that only dealerships which have been created (valid IDs) are able to be teleported to. So for example in the TP command you would add
Код:
if(DealershipInfo[id][Created] == true)