can you help me - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: can you help me (
/showthread.php?tid=646488)
can you help me -
LOLITO - 17.12.2017
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);
Re: can you help me -
MarkNelson - 17.12.2017
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
Re: can you help me -
POL_george - 17.12.2017
new Test1[35];
TextDrawSetString(Test1[35], test);
There can't be 2 variables defined with the same name
Re: can you help me -
Lucases - 17.12.2017
Just change the second string's name from test to something else