I've recently faced this issue today and I didn't manage to fix it correctly.
First this is the part of the code which causes crashes:
1
2
3
4
5
2
3
4
5
function warmod.clear_all_texts() 	for i = 0, 48 do -- 49 used for version 		parse('hudtxt ' .. i) 	end end
When I call this function from a script no matter the current state of the round, some players (mostly high pingers) tends to crash for no reason. This is a snippet from my project warmod: https://github.com/codneutro/warmod. A thing to know is that I never use all the texts IDs I only used from this range to 0 from 15. So I wonder if clearing unwritten texts would lead to problems ?
My question are:
- Is this snippet valid ?
- Why only few people crashes and not everybody ?
edited 2×, last 31.10.16 12:31:09 am