#2

Well.. The code Isn't really easy.

But here is a tip:
Strings are actually arrays.. Meaing that the variable: string[5] which lets say equals "Johny" will look like :
Код:
0 - J
1 - O
2 - H
3 - N
4 - Y
5 - \0 (The NULL.)
So to loop through the character you can use:
pawn Код:
for(new i; i < strlen(string); i++)
{
    if(string[i] == 'CHAR HERE')
    {
          //CODE HERE
    }
}
Using the same code above... detect the pos of { and the pos of } and than delete all chars between them.
Reply


Messages In This Thread
Hey. - by GShock - 17.04.2015, 21:18
Re: Hey. - by Ahmad45123 - 17.04.2015, 21:30
Re: Hey. - by Vince - 17.04.2015, 21:41
Re: Hey. - by GShock - 17.04.2015, 21:42
Re: Hey. - by Jefff - 17.04.2015, 22:06
Re: Hey. - by GShock - 17.04.2015, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)