[URGENTE] +rep ERRO dini
#1

Por favor alguen me diz o que aconteceu meu Game Mod copilava normal aew eu modifiquei e deu 1 erro ! entгo apaguei , eu tenho varias copias do GM (GAMEMOD) e botei o GM denovo sem modificacгo ! da 1 erro dini
pawn Код:
C:\Users\User\Desktop\BSL.pwn(2) : fatal error 100: cannot read from file: "dini"

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


1 Error.
Alguen pode me dizer o que ta acontecendo ?
Reply
#2

Topo.
Код:
#include <dini>
Ou atualize suas includes (:
Download Include Uso :
http://www.4shared.com/file/ittmGIrv/Dini.html
Reply
#3

topo do GM
pawn Код:
#include <a_samp>
#include <dini>
#include <c_vehicleinfo>
#include <string>
#include <a_players>
#include <a_vehicles>
#include <core>
#include <float>
#include <streamer>
Acho que й atualizar como faco isso ?
Reply
#4

http://www.4shared.com/file/ittmGIrv/Dini.html
Baixa ai, e coloque na Pasta
Pawno/Includes
Reply
#5

Baixe a include por esse Link postado pelo OwnPlaay: http://www.4shared.com/file/ittmGIrv/Dini.html

Coloque-a dentro da pasta Includes do seu Pawno e pronto!
Reply
#6

Deu o mesmo erro sу que com o include de #include <c_vehicleinfo>
Nгo tem um pack com todos eles ?
#include <a_samp>
#include <dini>
#include <c_vehicleinfo>
#include <string>
#include <a_players>
#include <a_vehicles>
#include <core>
#include <float>
#include <streamer>
Reply
#7

Aqui :
http://www.4shared.com/file/du614niA/c_vehicleinfo.html
Faзa a mesma coisa do que a Dini.
Reply
#8

Cara, estou achando que vocк acabou excluindo todas as suas includes e se foi isso mesmo vocк vai ter que baixar todas denovo e coloca-las na pasta Include do seu Pawno como eu havia dito!
Reply
#9

Ai,Se Quiser Ripo a Minha,e ponho no 4shared para download..
Algumas suas eu tenho..
Algumas nao..
Se Quiser Avisa. ^^
Reply
#10

Sim me passa a que tver pediu outro streamer passa todas no 4shared !
Reply
#11

Cara, se vai ficar 4 Anos assim, baixa um pacote de Includes que vocк ganha mais.
Reply
#12

eu baixei todas as includes que pediu , ate que deu esse erro orrivel , tу comencando a me apavorar alguen me ajuda ? >
pawn Код:
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2894) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2895) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2896) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2897) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2898) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2899) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2900) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2909) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2910) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2911) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(2908) : warning 204: symbol is assigned a value that is never used: "index"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(3509) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(3509) : error 033: array must be indexed (variable "cmd")
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(3928) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(3928) : error 033: array must be indexed (variable "tmp")
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(3970) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(3970) : error 033: array must be indexed (variable "tmp")
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(3977) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(3977) : error 033: array must be indexed (variable "tmp")
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(4013) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(4013) : error 033: array must be indexed (variable "tmp")
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(4034) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(4034) : error 033: array must be indexed (variable "tmp")
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(4120) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(4120) : error 033: array must be indexed (variable "tmp")
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(4157) : error 017: undefined symbol "strtok"
C:\Users\User\Desktop\new B S L - II  0.3d\gamemodes\BSL.pwn(4157) : error 033: array must be indexed (variable "tmp")

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


26 Errors.
Imagen da include no GM e na pasta PAWNO/includes...


O que й isso ? pf +rep pra quem me ajudar ...
Reply
#13

Nгo.. Ele deve ter mais de 1 pawno no desktopo.. por isso ta dando isso.. coloke as includes em todas pasta Pawno que tem em seu desktopo!
Reply
#14

cara eu jб baixei tudo o nogocio й a include c_vehicleinfo .... eu ja botei mais ai da esse erro enorme ... eu queria essa include c_vehicleinfo atualizada ! 0.3d
Reply
#15

@duple post
PF alguen me ajuda ? to pra morrer e na consigo ajeitar isso !
Reply
#16

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
#17

Quote:
Originally Posted by RNT
Посмотреть сообщение
cara eu jб baixei tudo o nogocio й a include c_vehicleinfo .... eu ja botei mais ai da esse erro enorme ... eu queria essa include c_vehicleinfo atualizada ! 0.3d
tenta:

pawn Код:
// coloca isso no final 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;
}
e posta as linhas:
2908
3509
3928

e tbm as linhas onde vc cria as variaveis tmp, index, e cmd.

@edit, num tinha visto o post do Viniborn, sorry.
Reply
#18

Viniborn o que eu faco com esse codigo ?
Reply
#19

@OFF To Meio Brizado Aki(Sono) Entendi Isso

Atualiza Sua Dini Apague Tudo Que Tem no Bloco '' Dini '' Pawno/include/Dini e Coloque Isso

pawn Код:
/* Creditos DracoBlue Criando em 190000.. */

#if defined _dini_included
  #endinput
#endif

#define _dini_included
#pragma library dini

#if defined MAX_STRING
#define DINI_MAX_STRING MAX_STRING
#else
#define DINI_MAX_STRING 255
#endif

stock dini_Exists(filename[]) {
    return fexist(filename);
}

stock dini_Remove(filename[]) {
    return fremove(filename);
}

stock dini_Create(filename[]) {
    if (fexist(filename)) return false;
    new File:fhnd;
    fhnd=fopen(filename,io_write);
    if (fhnd) {
        fclose(fhnd);
        return true;
    }
    return false;
}

stock dini_Set(filename[],key[],value[]) {
    // If we have no key, it can't be set
    // we also have no chance to set the value, if all together is bigger then the max string
    new key_length = strlen(key);
    new value_length = strlen(value);
    if (key_length==0 || key_length+value_length+2>DINI_MAX_STRING) return false;
   
    new File:fohnd, File:fwhnd;
    new tmpres[DINI_MAX_STRING];
    new bool:wasset=false;
   
    // Let's remove the old *.part file if there was one.
    format(tmpres,sizeof(tmpres),"%s.part",filename);
    fremove(tmpres);
   
    // We'll open the source file.
    fohnd=fopen(filename,io_read);
    if (!fohnd) return false;
   
    fwhnd=fopen(tmpres,io_write);
    if (!fwhnd) {
        // we can't open the second file for writing, so .. let's close the open one and exit.
        fclose(fohnd);
        return false;
    }
   
    while (fread(fohnd,tmpres)) {
        if (
            !wasset
            && tmpres[key_length]=='='
            && !strcmp(tmpres, key, true, key_length)  
        ) {
                // We've got what needs to be replaced!
                format(tmpres,sizeof(tmpres),"%s=%s",key,value);
                wasset=true;
        } else {
            DINI_StripNewLine(tmpres);
        }
        fwrite(fwhnd,tmpres);
        fwrite(fwhnd,"\r\n");
    }

    if (!wasset) {
        format(tmpres,sizeof(tmpres),"%s=%s",key,value);
        fwrite(fwhnd,tmpres);
        fwrite(fwhnd,"\r\n");
    }

    fclose(fohnd);
    fclose(fwhnd);

    format(tmpres,sizeof(tmpres),"%s.part",filename);
    if (DINI_fcopytextfile(tmpres,filename)) {
        return fremove(tmpres);
    }
    return false;
}


stock dini_IntSet(filename[],key[],value) {
   new valuestring[DINI_MAX_STRING];
   format(valuestring,DINI_MAX_STRING,"%d",value);
   return dini_Set(filename,key,valuestring);
}

stock dini_Int(filename[],key[]) {
   return strval(dini_Get(filename,key));
}

stock dini_FloatSet(filename[],key[],Float:value) {
   new valuestring[DINI_MAX_STRING];
   format(valuestring,DINI_MAX_STRING,"%f",value);
   return dini_Set(filename,key,valuestring);
}

stock Float:dini_Float(filename[],key[]) {
   return floatstr(dini_Get(filename,key));
}

stock dini_Bool(filename[],key[]) {
   return strval(dini_Get(filename,key));
}

stock dini_BoolSet(filename[],key[],value) {
    if (value) {
        return dini_Set(filename,key,"1");
    }
    return dini_Set(filename,key,"0");
}

stock dini_Unset(filename[],key[]) {
    // If we have no key, it can't be set
    // we also have no chance to unset the key, if all together is bigger then the max string
    new key_length = strlen(key);
    if (key_length==0 || key_length+2>DINI_MAX_STRING) return false;
   
    new File:fohnd, File:fwhnd;
    new tmpres[DINI_MAX_STRING];
   
    // Let's remove the old *.part file if there was one.
    format(tmpres,DINI_MAX_STRING,"%s.part",filename);
    fremove(tmpres);
   
    // We'll open the source file.
    fohnd=fopen(filename,io_read);
    if (!fohnd) return false;
   
    fwhnd=fopen(tmpres,io_write);
    if (!fwhnd) {
        // we can't open the second file for writing, so .. let's close the open one and exit.
        fclose(fohnd);
        return false;
    }
   
    while (fread(fohnd,tmpres)) {
        if (
            tmpres[key_length]=='='
            && !strcmp(tmpres, key, true, key_length)  
        ) {
                // We've got what needs to be removed!
        } else {
            DINI_StripNewLine(tmpres);
            fwrite(fwhnd,tmpres);
            fwrite(fwhnd,"\r\n");
        }
    }
   
    fclose(fohnd);
    fclose(fwhnd);

    format(tmpres,DINI_MAX_STRING,"%s.part",filename);
    if (DINI_fcopytextfile(tmpres,filename)) {
        return fremove(tmpres);
    }
    return false;
}

stock dini_Get(filename[],key[]) {
    new tmpres[DINI_MAX_STRING];
   
    new key_length = strlen(key);
    if (key_length==0 || key_length+2>DINI_MAX_STRING) return tmpres;
   
    new File:fohnd;
    fohnd=fopen(filename,io_read);
    if (!fohnd) return tmpres;
   
    while (fread(fohnd,tmpres)) {
        if (
            tmpres[key_length]=='='
            && !strcmp(tmpres, key, true, key_length)  
        ) {
            /* We've got what we need */
            DINI_StripNewLine(tmpres);
            strmid(tmpres, tmpres, key_length + 1, strlen(tmpres), DINI_MAX_STRING);
            fclose(fohnd);
            return tmpres;
        }
    }
    fclose(fohnd);
    return tmpres;
}


stock dini_Isset(filename[],key[]) {
    new key_length = strlen(key);
    if (key_length==0 || key_length+2>DINI_MAX_STRING) return false;
   
    new File:fohnd;
    fohnd=fopen(filename,io_read);
    if (!fohnd) return false;
   
    new tmpres[DINI_MAX_STRING];
    while (fread(fohnd,tmpres)) {
        if (
                tmpres[key_length]=='='
            &&  !strcmp(tmpres, key, true, key_length) 
        ) {
            // We've got what we need
            fclose(fohnd);
            return true;
        }
    }
    fclose(fohnd);
    return false;
}



stock DINI_StripNewLine(string[]) {
    new len = strlen(string);
    if (string[0]==0) return ;
    if ((string[len - 1] == '\n') || (string[len - 1] == '\r')) {
        string[len - 1] = 0;
        if (string[0]==0) return ;
        if ((string[len - 2] == '\n') || (string[len - 2] == '\r')) string[len - 2] = 0;
    }
}

stock DINI_fcopytextfile(oldname[],newname[]) {
    new File:ohnd,File:nhnd;
    if (!fexist(oldname)) return false;
    ohnd=fopen(oldname,io_read);
    if (!ohnd) return false;
    nhnd=fopen(newname,io_write);
    if (!nhnd) {
        fclose(ohnd);
        return false;
    }
    new tmpres[DINI_MAX_STRING];
    while (fread(ohnd,tmpres)) {
        DINI_StripNewLine(tmpres);
        format(tmpres,sizeof(tmpres),"%s\r\n",tmpres);
        fwrite(nhnd,tmpres);
    }
    fclose(ohnd);
    fclose(nhnd);
    return true;
}


Salva

Va No Seu Gamemode Entre Suas Include Coloca

pawn Код:
#include <dini>
@OFF TENSO Desda 17:30 Esperando Alguem Responde Meu Topico '-'
Reply
#20

@duples post

Me ajuda steel
linhas
pawn Код:
2908   index = 0;
3509   cmd = strtok(cmdtext, idx);
3928   tmp = strtok(cmdtext, idx);
Jб coloquei o codigo no final do GM...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)