[Ajuda] Separar strings
#4

Vc pode fazer isso com o sscanf tbm

Код:
new string[28], valores[7];
string = "666|666|666|666|666|666|666";
sscanf(string, "p<|>a<d>[7]", valores);
for(new i; i < sizeof(valores); i ++)
{
    printf("valor%d=%d", i+1, valores[i]);
}
Reply


Messages In This Thread
Separar strings - by B4dSh33p - 09.11.2018, 05:40
Re: Separar strings - by Electrifying - 09.11.2018, 10:42
Re: Separar strings - by ipsLuan - 09.11.2018, 11:16
Re: Separar strings - by Paulthaz - 09.11.2018, 11:54
Re: Separar strings - by B4dSh33p - 11.11.2018, 22:03

Forum Jump:


Users browsing this thread: 1 Guest(s)