[Ajuda] Linha muito longa
#4

Quote:
Originally Posted by Gleisson_.
Посмотреть сообщение
Strcat com argumentos %s, %d ¬¬
Usa uma variбvel como buffer...

Nгo faзo pra vc por que estou enviando esta mensagem de um tablet, mas vou fazer um exemplo abaixo:
pawn Код:
new string[256], buffer[128];

format(buffer, 128, "%d %d ", x, y);
strcat(string, buffer);
format(buffer, 128, "%d %d", z, r);
strcat(string, buffer);
No final terнamos uma funзгo equivalente a:
pawn Код:
format(string, 256, "%d %d %d %d", x, y, z, r);
Reply


Messages In This Thread
Linha muito longa - by Gleisson_. - 30.06.2013, 01:23
Re: Linha muito longa - by Gustavo_Carvalho - 30.06.2013, 01:37
Re: Linha muito longa - by Gleisson_. - 30.06.2013, 01:58
Re: Linha muito longa - by Kuddy - 30.06.2013, 02:05
Re: Linha muito longa - by Gleisson_. - 30.06.2013, 02:06
Re: Linha muito longa - by Lуs - 30.06.2013, 02:21
Re: Linha muito longa - by Larceny - 30.06.2013, 02:34
Re: Linha muito longa - by Gleisson_. - 30.06.2013, 02:56

Forum Jump:


Users browsing this thread: 1 Guest(s)