[Ajuda] Ao Compilar no pawn 0.3c
#1

pawn Код:
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2106) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2107) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2108) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2109) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2110) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2111) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2112) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2121) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2122) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2123) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2120) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2965) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(2965) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3246) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3246) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3283) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3283) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3289) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3289) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3323) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3323) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3342) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3342) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3405) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3405) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3433) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(3433) : error 033: array must be indexed (variable "tmp")
Reply
#2

Tipo й algo com
pawn Код:
#define
pawn Код:
#define strtok (algo que nгo sei '-'
Й isso que tem que fazer, sу nгo sei qual define vai ser
Reply
#3

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;
}
Os outros erros sгo das arrays "tmp" e "cmd"
Reply
#4

pawn Код:
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(6977) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(7005) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(7669) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.
Reply
#5

Vocк Colocou Algum Comando Sei la ?

Se For Use : tmp = strtok(cmdtext, idx);

Se Nгo For Tente Colocar Include Atualizadas.
Reply
#6

Quote:
Originally Posted by Twisted_.
Посмотреть сообщение
pawn Код:
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(6977) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(7005) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Desktop\RPGv32.pwn(7669) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.
"O Nъmero de Argumentos nгo Corresponde" isto й, vocк nгo usou todos os argumentos (Fatores necessбrios) que se pede, passou, ou usou menos.

Exemplo:

Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
Se vocк colocar:
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx);
Muito provavelmente vocк iria ter esta mesma advertкncia.
Mostre-me as linhas.
Reply
#7

pawn Код:
7005 tmp = strtok(cmdtext, idx, strlen(cmdtext));
7669 tmp = strtok(cmdtext, idx, strlen(cmdtext));
6977 tmp = strtok(cmdtext, idx, strlen(cmdtext));


e tbm a dialog de loga nao aparece so no 0.3c
Reply
#8

Quote:
Originally Posted by Twisted_.
Посмотреть сообщение
pawn Код:
7005 tmp = strtok(cmdtext, idx, strlen(cmdtext));
7669 tmp = strtok(cmdtext, idx, strlen(cmdtext));
6977 tmp = strtok(cmdtext, idx, strlen(cmdtext));


e tbm a dialog de loga nao aparece so no 0.3c
Vocк usou 3 Fatores(Argumentos): (1)cmdtext, (2)idx, (3)strlen(cmdtext).
Код:
tmp = strtok(cmdtext, idx, strlen(cmdtext));
A definiзгo padrгo de strtok consiste em apenas 2.
Код:
strtok(const string[],&index)
Entгo:
Код:
tmp = strtok(cmdtext, idx);
Na questгo do "Dialog", pelo que percebi, nada foi atualizado da versгo 0.3b para a 0.3c. Entгo, acredito que o problema seja no seu cуdigo. Ja testou em ambas as versхes do SA-MP?

Eu mesmo consigo acessar scripts (0.3b) de "Register/Login" com "Dialogs" no SA-MP 0.3c e funciona normalmente.
Reply
#9

no 0.3b funciona normalment
Reply
#10

Quote:
Originally Posted by Twisted_.
Посмотреть сообщение
no 0.3b funciona normalment
Todos os scripts que utilizei no Sa-Mp 0.3b que usavam Dialogs funcionam normalmente no 0.3c. Acredito que possa ser alguma funзгo no seu script que nгo seja compatнvel com a nova versгo. E, claro, vocк deve compilar o script usando os includes/pawno da nova versгo. Outra questгo й que Dialogs muitas vezes costumam entrar em conflito com dialogs de Filterscripts ou Includes (SaMp 0.3b-)(Ainda nгo sei se isso foi fixado na 0.3c, particularmente ainda nгo tive esse problema nessa versгo).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)