[Ajuda] Comparar TAG em DOF2
#1

Olб, boa tarde.
Eu gostaria de saber como eu posso conferir 2 'TAG' em dof2.
Exemplo: DOF2_GetString(LOCALPASTA, "ID1","TAG")
TAG == DIA DE HOJE.

:: Checar se a TAG й Igual ao dia de hoje, para depois ver o ID1 ?
Reply
#2

PHP код:
native DOF2_SectionExists (file [], tag []); 
Reply
#3

strcmp
Reply
#4

Obrigado Lуs, eu nгo conhecia essa funзгo, poderia me dizer se hб mais funзхes em DOF2 para eu estudar ?
Obrigado mesmo pela ajuda.
Reply
#5

Quote:
Originally Posted by davi54723
Посмотреть сообщение
Obrigado Lуs, eu nгo conhecia essa funзгo, poderia me dizer se hб mais funзхes em DOF2 para eu estudar ?
Obrigado mesmo pela ajuda.
abra a include que vocк vera todas as funзхes dela
Reply
#6

pawn Код:
native DOF2_SetFile(file[]);
native DOF2_LoadFile();
native DOF2_SaveFile();
native DOF2_ParseFile(file[],extraid,bool:callback=true);
native DOF2_ReparseFile(file[],extraid,bool:callback=true);
native DOF2_WriteFile();
native DOF2_PrintFile(comment[]="");
native DOF2_GetString(file[],key[],tag[]="");
native DOF2_GetStringEx(file[],key[],result[],size,tag[]="");
native Float:DOF2_GetFloat(file[],key[]);
native DOF2_GetInt(file[],key[],tag[]="");
native DOF2_GetHex(file[],key[],tag[]="");
native DOF2_GetBin(file[],key[],tag[]="");
native bool:DOF2_GetBool(file[],key[],tag[]="");
native DOF2_SetString(file[],key[],value[],tag[]="");
native DOF2_SetFloat(file[],key[],Float:value);
native DOF2_SetInt(file[],key[],value,tag[]="");
native DOF2_SetHex(file[],key[],value,tag[]="");
native DOF2_SetBin(file[],key[],value,tag[]="");
native DOF2_SetBool(file[],key[],bool:value,tag[]="");
native DOF2_IsSet(file[],key[],tag[]="");
native DOF2_Unset(file[],key[],tag[]="");
native DOF2_FileExists(file[]);
native DOF2_RemoveFile(file[]);
native DOF2_CreateFile(file[],password[]="");
native DOF2_RenameFile(oldfile[],newfile[]);
native DOF2_RenameKey(file[],oldkey[],newkey[],tag[]="");
native DOF2_CopyFile(filetocopy[],newfile[]);
native DOF2_CheckLogin(file[],password[]);
native DOF2_File(user[]);
native DOF2_ParseInt();
native DOF2_ParseFloat();
native DOF2_ParseBool();
native DOF2_ParseBin();
native DOF2_ParseHex();
native DOF2_SetUTF8(bool:set);
native bool:DOF2_GetUTF8();
native DOF2_GetFile();
native DOF2_MakeBackup(file[]);
native DOF2_RemoveSection (file [], tag []);
native DOF2_SectionExists (file [], tag []);
native DOF2_SortSection (file [], tag [], bool: ignorecase = true, bool: ascending = true);
native DOF2_SortAllSections (file [], bool: ignorecase = true, bool: ascending = true);
native DOF2_SetCaseSensitivity (bool: set);
native DOF2_GetCaseSensitivity ();
Obrigado

----------------------------

Olб novamente, gostaria de saber como eu faзo para deletar um funзгo dentro do arquivo.
Exemplo:
[TAG]
NOME1 = NOME2

Deletar dentro da 'tag' o 'nome'.
Reply
#7

Quote:
Originally Posted by davi54723
Посмотреть сообщение
Olб novamente, gostaria de saber como eu faзo para deletar um funзгo dentro do arquivo.
Exemplo:
[TAG]
NOME1 = NOME2

Deletar dentro da 'tag' o 'nome'.
PHP код:
if(DOF2_IsSet("arquivo.txt""Nome 1""Tag")) {
    
DOF2_Unset("arquivo.txt""Nome 1""Tag");

----------------

Cuidado com double-post, edite a mensagem anterior.
Reply
#8

Perdгo 'LУS'.
Entгo, como funcionaria isso que me mandaste ?
Reply
#9

Quote:
Originally Posted by davi54723
Посмотреть сообщение
Perdгo 'LУS'.
Entгo, como funcionaria isso que me mandaste ?
Ele checa se a key "Nome 1" estб dentro da tag "Tag", se estiver, ele a remove.
Reply
#10

Aqui nгo funcionou Lуs, ele simplesmente nгo removeu, mesmo o 'NOME 1' e a 'Tag' estando la..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)