[Ajuda] Erro Dini ]=
#1

Galera olha o erro que dб ao compilar o GM:

Код:
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(259) : error 017: undefined symbol "SetDisabledWeapons"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1672) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1672) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1701) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1701) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1670) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1852) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1852) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1851) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1921) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1921) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1920) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1959) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1959) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(1958) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2006) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2006) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2005) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2060) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2060) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2059) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2098) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2098) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2097) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2136) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2136) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2135) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2174) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2174) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2173) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2212) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2212) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2211) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2250) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2250) : error 033: array must be indexed (variable "tmp2")
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2249) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\gamemodes\partyserver.pwn(2289) : error 017: undefined symbol "strtok"
Quando eu tiro o dini.inc da includes do pawno:

Код:
C:\Documents and Settings\Administrador\Meus documentos\Downloads\samp03x_svr_R1-2_win32\pawno\include\dudb.inc(26) : fatal error 100: cannot read from file: "dini"
OBS: To usando Dini 1.6...
Reply
#2

Chega de viver.
Mano, vocк inventou de se tirar o dini das includes iria funcionar?
Dini й um sistema de salvamento e ainda por cima й uma porra de lerda.
Reply
#3

Deixa a include jovem.

Final do gm:

PHP код:
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;

e em OnPlayerCommandText, coloca no topo:

PHP код:
new tmp[128]; 
Reply
#4

obrigado iFoox, nao tirei a dini pq quis, qdo peguei o gm veio sem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)