can you help me
#1

C: \ Users \ Lolito \ Desktop \ EspaсaRoleplay.pwn (8004): warning 219: local variable "Test" shadows a variable at a preceding level
C: \ Users \ Lolito \ Desktop \ EspaсaRoleplay.pwn (8006)error 032: array index out of bounds (variable "Test")



Line 8004: new Test[35];

Line 8006: TextDrawSetString(Test[35], Test);
Reply
#2

Quote:
Originally Posted by LOLITO
Посмотреть сообщение
C: \ Users \ Lolito \ Desktop \ EspaсaRoleplay.pwn (8004): warning 219: local variable "Test" shadows a variable at a preceding level
C: \ Users \ Lolito \ Desktop \ EspaсaRoleplay.pwn (8006)error 032: array index out of bounds (variable "Test")



Line 8004: new Test[35];

Line 8006: TextDrawSetString(Test[35], Test);
There is something in the script which uses the same variable "Test" try to change test with something else like Tests
Reply
#3

new Test1[35];

TextDrawSetString(Test1[35], test);

There can't be 2 variables defined with the same name
Reply
#4

Just change the second string's name from test to something else
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)