Im trying to put this code.
#1

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.
Reply


Messages In This Thread
Im trying to put this code. - by gamersx - 09.02.2017, 18:05
Re: Im trying to put this code. - by iLearner - 09.02.2017, 18:19
Re: Im trying to put this code. - by gamersx - 09.02.2017, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)