16.11.2007, 20:19
Am I the only one who sees that this script works only if all resource ids are assigned consecutively?
Suppose I have 100 menus and I decide to destroy the menu with id 5, the script will tell me I have 4 menus, while I have 99 then.
You need loop through all ids and check if the id is valid with the IsValid* functions.
Suppose I have 100 menus and I decide to destroy the menu with id 5, the script will tell me I have 4 menus, while I have 99 then.
You need loop through all ids and check if the id is valid with the IsValid* functions.