16.10.2014, 15:12
Что за ерунда с GetPVarString?
а если вместо sizeof(str) написать вручную 9 например (а не 10 как возвращает sizeof) то всё ок. получается надо делать sizeof(str)-1?
Код:
new str[10]; GetPVarString(playerid, "txt_a_flood_string", str, sizeof(str));
Quote:
[19:06:14] [debug] Run time error 4: "Array index out of bounds" [19:06:14] [debug] Accessing element at negative index -1 |