[Ajuda] Simbolo indefinido "DINI_fcopytextfile"
#1

Converti meu GM de DINI para DOF2 e deu este erro
pawn Код:
(15498) : error 017: undefined symbol "DINI_fcopytextfile"
Linha
pawn Код:
DINI_fcopytextfile(file, string);
Comando completo
pawn Код:
if((strcmp(cmd, "/deletarconta", true)==0 || strcmp(cmd, "/dc", true) ==0) && PlayerInfo[playerid][pAdmin] == DONO)
    {
        new file[64];
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))  return SendClientMessage(playerid, COLOR_GRAD2, "USE: /deletarconta [Nick]");
        if (PlayerInfo[playerid][pAdmin] != DONO)
        {
            SendClientMessage(playerid, COLOR_GREY,"Vocк nгo tem permissгo para usar esse comando!");
            return true;
        }
        getdate(v[0], v[1], v[2]);
        gettime(v[3], v[4], v[5]);
        format(string, 128, "[%d/%d/%d] [%d:%d:%d] %s Apagou a conta: %s", v[2], v[1], v[0], v[3], v[4], v[5] , PlayerName(playerid), tmp);
        AComandosLog(string);
        format(file,sizeof(file),"Contas/%s.ini",tmp);
        format(string, 128, "%s.bak", file);
        DINI_fcopytextfile(file, string);
        fremove(file);
        return true;
    }
Reply
#2

Tem um Tutorial ai na Board BR/PT que ensina a converter pra dof2

https://sampforum.blast.hk/showthread.php?tid=361671

PHP код:
dini                    DOF2
 
\/                      \/
dini_Exists             DOF2_FileExists
dini_Remove             DOF2_RemoveFile
dini_Create             DOF2_CreateFile
dini_Set                DOF2_SetString
dini_Get                DOF2_GetString
dini_IntSet             DOF2_SetInt
dini_Int                DOF2_GetInt
dini_BoolSet            DOF2_SetBool
dini_Bool               DOF2_GetBool
dini_FloatSet           DOF2_SetFloat
dini_Float              DOF2_GetFloat
dini_Unset              DOF2_Unset
dini_Isset              DOF2_IsSet
dini_fcopytextfile      DOF2_CopyFile 
Reply
#3

Eu ja coloquei mais nгo deu...
Reply
#4

Vlw fera deu sim +Rep
Reply
#5

Quote:
Originally Posted by alexcordeiro
Посмотреть сообщение
PHP код:
#define dini_Exists             DOF2_FileExists
    #define dini_Remove             DOF2_RemoveFile
    #define dini_Create             DOF2_CreateFile
    #define dini_Set                DOF2_SetString
    #define dini_Get                DOF2_GetString
    #define dini_IntSet             DOF2_SetInt
    #define dini_Int                DOF2_GetInt
    #define dini_BoolSet            DOF2_SetBool
    #define dini_Bool               DOF2_GetBool
    #define dini_FloatSet           DOF2_SetFloat
    #define dini_Float              DOF2_GetFloat
    #define dini_Unset              DOF2_Unset
    #define dini_Isset              DOF2_IsSet 
eu fui compilar meu gm pq mudei tudo pra dof 2 e deu alguns erros, me ajuda a tira-los?
Reply
#6

Cadк as linhas dos erros poste o code das linhas.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)