28.05.2017, 19:52
Quote:
Hooking a callback too long (OnPlayerEditDynamicObject) result that doesn't work because the name is truncated? How can I bypass this problem? Use ALS method? Macro?
PHP Code:
|
You had to remplace some letters in your callback. ****** made a table for this:
PHP Code:
static stock
YSI_g_sReplacements[][E_HOOK_NAME_REPLACEMENT_DATA] =
{
{"CP", "Checkpoint", 2, 10},
// For "SIF".
{"Cnt", "Container", 3, 9},
{"Inv", "Inventory", 3, 9},
{"Dyn", "Dynamic", 3, 7},
{"TD", "TextDraw", 2, 8},
{"Upd", "Update", 3, 6},
{"Obj", "Object", 3, 6},
{"Cmd", "Command", 3, 7}
};