[Pedido] include strtok?
#1

Alguйm poderia disponibilizar um link??

oq achei no ****** estгo dando crash

2bju na bunda
Reply
#2

pawn Код:
stock strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Reply
#3

Quote:
Originally Posted by XandyMello
Посмотреть сообщение
pawn Код:
stock strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
sу adicionara ela no fim da GM?
Reply
#4

Quote:
Originally Posted by C0D3Xexe
Посмотреть сообщение
sу adicionara ela no fim da GM?
sim, nada mais nada menos
Reply
#5

Quote:

: fatal error 100: cannot read from file: "strtok"

adicionei ao final da GM o mesmo apresenta este erro :/
estranho --'
Reply
#6

Adiciona no inicio, apуs main().
Reply
#7

Cara este erro й porque vocк estб incluindo algo com o nome strtok, sendo que й apenas uma funзгo...
Reply
#8

Ou entгo, tenta tirar o stock da frente, jб vi casos similar.
Reply
#9

Quote:
Originally Posted by C0D3Xexe
Посмотреть сообщение
adicionei ao final da GM o mesmo apresenta este erro :/
estranho --'
Vocк usou dessa forma?
Код:
#include <strtok>
Se for amigo... DELETA!

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
Ou entгo, tenta tirar o stock da frente, jб vi casos similar.
Pra mim compilou normalmente
Reply
#10

Quote:
Originally Posted by Kanuy
Посмотреть сообщение
Vocк usou dessa forma?
Код:
#include <strtok>
Se for amigo... DELETA!


Pra mim compilou normalmente
agora foi

thx brothr
retirei o
Код:
#include <strtok>
e adicionei o

Код:
stock strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}
	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
no final da GM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)