Is this thing is good for sure?
pawn Код:
sscanf(Query, "p<|>e<is[256]iifffffff>",TeritoriuData[idx]);
For the logic.. i think it's not. Maybe i can be wrong, because you're doing it in MySql, but you got only TeritoriuData after comma, but sscanf says something different some float values and other thing.