AYUDENME POR FAVOR!!!
#7

este codigo
pawn Код:
new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                result[idx - offset] = cmdtext[idx];
                idx++;
                }
                result[idx - offset] = EOS;
reemplazalo x strtok(idx, tmp) y defini tmp como un array de 256 bytes, dado que ese codigo (si mi memoria no me falla es = o casi = al de strtok y cumple su funcion).
(no es el problema (x lo menos eso creo yo) pero hace mas eficiente al codigo).
Reply


Messages In This Thread
AYUDENME POR FAVOR!!! - by TiNcH010 - 15.10.2010, 19:32
Respuesta: AYUDENME POR FAVOR!!! - by pagaromx96 - 15.10.2010, 20:08
Respuesta: AYUDENME POR FAVOR!!! - by TiNcH010 - 15.10.2010, 20:19
Respuesta: AYUDENME POR FAVOR!!! - by pagaromx96 - 15.10.2010, 20:23
Respuesta: AYUDENME POR FAVOR!!! - by TiNcH010 - 15.10.2010, 20:24
Re: AYUDENME POR FAVOR!!! - by Zamaroht - 15.10.2010, 20:58
Re: AYUDENME POR FAVOR!!! - by TheChaoz - 15.10.2010, 21:00
Respuesta: AYUDENME POR FAVOR!!! - by TiNcH010 - 15.10.2010, 22:11
Re: Respuesta: AYUDENME POR FAVOR!!! - by cocolabush - 15.10.2010, 22:56
Respuesta: AYUDENME POR FAVOR!!! - by TiNcH010 - 15.10.2010, 23:02

Forum Jump:


Users browsing this thread: 1 Guest(s)