09.02.2017, 18:05
Hi,i'm trying to put this code on my gamemode.
new
string[180] ,i;
strcat(string,text);
while(string[i])
{
if((string[i] == '*' && string[i+1] != '*')||(string[i] == '-' && string[i+1] != '-'))
{
strdel(string,i,i+1);
strins(string,"{FA7E7D}",i);
}
i++;
}
But after compiling i get tons of error on almost all lines saying "local variable "i" shadows a variable at a preceding level " ,etc. Thanks for reading.
new
string[180] ,i;
strcat(string,text);
while(string[i])
{
if((string[i] == '*' && string[i+1] != '*')||(string[i] == '-' && string[i+1] != '-'))
{
strdel(string,i,i+1);
strins(string,"{FA7E7D}",i);
}
i++;
}
But after compiling i get tons of error on almost all lines saying "local variable "i" shadows a variable at a preceding level " ,etc. Thanks for reading.