[Ajuda] Erros --'
#1

pawn Код:
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
symbol is assigned a value that is never used: "index"
undefined symbol "strtok"
 array must be indexed (variable "cmd")
undefined symbol "strtok"
array must be indexed (variable "tmp")
 undefined symbol "strtok"
array must be indexed (variable "tmp")
 undefined symbol "strtok"
 array must be indexed (variable "tmp")
 undefined symbol "strtok"
 array must be indexed (variable "tmp")
 undefined symbol "strtok"
 array must be indexed (variable "tmp")
error 017: undefined symbol "strtok"
array must be indexed (variable "tmp")
undefined symbol "strtok"
error 033: array must be indexed (variable "tmp")
Linhas
pawn Код:
new File:temp;
new index = 0;
new tmp[256];
new modelid, Float:X, Float:Y, Float:Z, Float:ang, Cor1, Cor2;
temp = fopen("carros.txt", io_readwrite);
while(fread(temp, tmp, sizeof(tmp), false)) {
index = 0;
modelid    = strval(strtok(tmp, index));
X          = Float:floatstr(strtok(tmp, index));
Y          = Float:floatstr(strtok(tmp, index));
Z          = Float:floatstr(strtok(tmp, index));
ang        = Float:floatstr(strtok(tmp, index));
Cor1       = strval(strtok(tmp, index));
Cor2       = strval(strtok(tmp, index));

cAddStaticVehicleEx(modelid, X, Y, Z, ang, Cor1, Cor2, 9999999999);
}
fclose(temp);
new Float:CasaXx, Float:CasaYx, Float:CasaZx;
temp = fopen("Casa.cfg", io_readwrite);
while(fread(temp, tmp, sizeof(tmp), false)) {
index = 0;
CasaXx          = Float:floatstr(strtok(tmp, index));
CasaYx          = Float:floatstr(strtok(tmp, index));
CasaZx          = Float:floatstr(strtok(tmp, index));
CreatePickup(1273, 1, CasaXx, CasaYx, CasaZx, -1);

if(!strlen(tmp)){

4049 - tmp = strtok(cmdtext, idx);

tmp = strtok(cmdtext, idx);
Alguem me ajuda? =s
Reply
#2

coloca isso no final do gm

pawn Код:
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 Caio_Freeze
Посмотреть сообщение
coloca isso no final do gm

pawn Код:
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;
}
pawn Код:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
error 017: undefined symbol "set"
error 017: undefined symbol "set"
error 017: undefined symbol "StrToInt"
error 017: undefined symbol "StrToInt"
 warning 203: symbol is never used: "DelayedKick"
pawn Код:
tmp = strtok(cmdtext, idx, strlen(cmdtext));
tmp = strtok(cmdtext, idx, strlen(cmdtext));
set(nome, tmp);
set(cor1,tmp);
dini_IntSet(string, "Cor1", StrToInt(inputtext));
dini_IntSet(string, "Cor2", StrToInt(inputtext));
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)