evandrocoan / AmxxEditor

Auto-complete and Build System for Amx Mod X on Sublime Text
GNU General Public License v3.0
9 stars 3 forks source link

Autocomplete doesn't work with stock bool or any other stock #11

Closed evandrocoan closed 6 years ago

evandrocoan commented 6 years ago

[QUOTE=CrazY.;2609338]Autocomplete doesn't work with stock bool or any other stock (weird, because before, it worked) and I got this following console error.

[pawn] / Tests if given string contains only digits. Also, returns false for zero-length strings. / stock bool:is_str_num(const sString[]) { new i = 0;

while (sString[i] && isdigit(sString[i]))
    ++i;

return sString[i] == 0 && i != 0;

} [/pawn]

[code]16:17:31:278.320074 5.66e+00 - AmxxEditor.AmxxEditor.load_from_file:854 - (analyzer) Include File Not Found: VexdUM[/code][/QUOTE]

evandrocoan commented 6 years ago

https://forums.alliedmods.net/showpost.php?p=2611661&postcount=129 [QUOTE=OciXCrom;2611661]There's some new werid problem with generating auto-complete for stocks. See this image:

[img] [/img]

As you can see in the file on the right, the stock name is "te_create_screen_aligned_beam", but in the file in the left, it finds it as "ate_screen_aligned_beam" and doesn't read the entire line, when I click it I get this:

[php]ate_screen_aligned_beam_ring(id, origin[3], axis[3], spriteid, startframe[/php]

But the entire line is this:

[php]stock te_create_screen_aligned_beam_ring(id, origin[3], axis[3], spriteid, startframe = 1, framerate = 10, life = 10, width = 10, noise = 0, r = 0, g = 0, b = 255, a = 75, speed = 30, bool:reliable = true)[/php]

I also have many more stocks starting with "te_" in the same file but only this one pops up when I start writing the stock's name.

In addition, I have amxmisc.inc included, but none of the stocks inside it appear when I start typing them.[/QUOTE]