13.12.2018, 13:19
why am I having these errors in my TXD?
Definition:
OBS:this is only one part, the text draw occupies 27 spaces in the array.
Код:
SS/Core/Player/Commands.pwn(162) : error 033: array must be indexed (variable "ClassChanger") SS/Core/Player/Commands.pwn(163) : error 035: argument type mismatch (argument 1) SS/Core/Player/Commands.pwn(164) : error 035: argument type mismatch (argument 1) SS/Core/Player/Commands.pwn(165) : error 035: argument type mismatch (argument 1) SS/Core/Player/Commands.pwn(166) : error 035: argument type mismatch (argument 1) SS/Core/Player/Commands.pwn(167) : error 035: argument type mismatch (argument 1) SS/Core/Player/Commands.pwn(168) : error 035: argument type mismatch (argument 1) SS/Core/Player/Commands.pwn(169) : error 035: argument type mismatch (argument 1) SS/Core/Player/Commands.pwn(170) : error 035: argument type mismatch (argument 1) SS/Core/Player/Commands.pwn(171) : error 035: argument type mismatch (argument 1)
PHP код:
ClassChanger[1] = TextDrawCreate(405.500000, 111.633316, "usebox");
TextDrawLetterSize(ClassChanger[1], 0.000000, 22.356815);
TextDrawTextSize(ClassChanger[1], 232.000000, 0.000000);
TextDrawAlignment(ClassChanger[1], 1);
TextDrawColor(ClassChanger[1], 0);
TextDrawUseBox(ClassChanger[1], true);
TextDrawBoxColor(ClassChanger[1], 102);
TextDrawSetShadow(ClassChanger[1], 0);
TextDrawSetOutline(ClassChanger[1], 0);
TextDrawFont(ClassChanger[1], 0);
PHP код:
new Text:ClassChanger[30];