SA-MP Forums Archive
[Ajuda] Problema com DOF2 ( serб bug?? ) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema com DOF2 ( serб bug?? ) (/showthread.php?tid=424124)



Problema com DOF2 ( serб bug?? ) - Mr.Hardy - 20.03.2013

Aqui estб б funзгo!

pawn Код:
new BanTemp[128];
function::GetBanTempByIP(file[], ipp[])
{
    format(BanTemp, 128, DOF2_GetString(file, ipp));
    return BanTemp;
}
Й usado assim:
pawn Код:
printf("%s", GetBanTempByIP("arquivo.ini", "127.0.0.1"));
O arquivo estб em perfeito estado! E no print resulta em espaзo.

Arquivo:
Код:
127.0.0.1 = 15;3;2013



Re: Problema com DOF2 ( serб bug?? ) - Dwayne-Pheonix - 20.03.2013

O espaзo entre a tag e o valor й normal em DOF2, jб com dini nгo se pode afirmar isso


Re: Problema com DOF2 ( serб bug?? ) - Mr.Hardy - 20.03.2013

Quote:
Originally Posted by Dwayne-Pheonix
Посмотреть сообщение
O espaзo entre a tag e o valor й normal em DOF2, jб com dini nгo se pode afirmar isso
Me explica melhor


Re: Problema com DOF2 ( serб bug?? ) - Dwayne-Pheonix - 20.03.2013

Ah desculpas, ao utilizar printf deve aparecer: "15;3;2013", isso se o arquivo estiver como vocк relatou acima

O que eu tentei dizer acima foi que quando se usa dini o arquivo fica assim:

Код:
tag=valor
Enquanto em DOF2 ficaria:
Код:
tag = valor
Era a esse "espaзo" que eu tava me referindo


Re: Problema com DOF2 ( serб bug?? ) - Mr.Hardy - 20.03.2013

O arquivo estб exatamente assim como eu falei. Oque serб que й? O DOF2 nгo le keys com caracteres "." ?