[Ajuda] Erros Ao Compilar -BASICO
#1

Bom Dia.

Primeiramente Tava Dando Erros De Strtok , Puis
pawn Код:
#define strtok
Depois Comeзo Uns Errinho De TMP Puis
pawn Код:
#define tmp
Beleza, Ai Deu Isso:
pawn Код:
C:\BWE\gamemodes\BWE.pwn(2204) : error 001: expected token: "-identifier-", but found "["
C:\BWE\gamemodes\BWE.pwn(2207) : error 029: invalid expression, assumed zero
C:\BWE\gamemodes\BWE.pwn(2207) : error 035: argument type mismatch (argument 2)
C:\BWE\gamemodes\BWE.pwn(2207) : error 020: invalid symbol name ""
C:\BWE\gamemodes\BWE.pwn(2207) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
pawn Код:
LINHAS 2202 - 2207:
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;
pawn Код:
LINHA 2202 - 2204
new File:temp;
new index = 0;
new tmp[256];
Reply
#2

a strtok ?
Reply
#3

ta mais puis #define strtok
Reply
#4

pawn Код:
//Calback OnPlayerText

new tmp[128];


//fim do gm
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
#5

Sу pioro , agora o pawno fecha ,.,..

@edit ,
Cйrto, Mas Os ERROS Continuaram
Reply
#6

Esqueceu uma defeni ai nгo acha? coloca assim

pawn Код:
#define n00b "shadauer й muito noob, pois defeniu uma strtock"
Vocк tб doido? Tira essas defines e olha para a wiki do samp.

https://sampwiki.blast.hk/wiki/Strtok

BlueX'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)