05.07.2015, 02:25
I don't really want to do that because then it could be real easy to make mistakes. If you really wanted to you could add the following to any command to establish this support.
Code:
#define UpdateObjectSelection(); if(!isnull(arg)) { \ new index = strval(arg); \ if(Iter_Contains(Objects, index)) CurrObject[playerid] = index; }
Code:
// Enter edit mode CMD:editobject(playerid, arg[]) // In GUI { MapOpenCheck(); EditCheck(playerid); UpdateObjectSelection();