- You should use OnPlayerRunCmd or OnPlayerRunCmdPost instead of OnGameFrame for this.
- I would even make this "static char" to avoid re-creating as it's used often.
- "char class_name[PLATFORM_MAX_PATH]" this is for file path sizes, should probably set to [32] or [64] to be safe, although I don't think any classname is longer than 32.
- Why "tabsize 0" and not replace all " " 4 spaces with tabs? You get a smaller file size, spaces just seem odd.
- I'm guessing you got the idea from
Switch Upgrade Packs Type by NoroHime, no credit?
__________________