[Ajuda] DOF2 - 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] DOF2 (
/showthread.php?tid=423710)
DOF2 -
Mr.Hardy - 19.03.2013
O DOF2 nгo estб lendo este arquivo, estб resultando em espaзo no print.
pawn Код:
#define dir_nivelsocial_Exp "usr/infousr/nivelsocial_exp.INI"
new vipexp[32];
format(vipexp, 32, "%s", DOF2_GetString(dir_nivelsocial_Exp, GetPlayerNameEx(playerid)));
printf("%s", vipexp);
Re: DOF2 -
MatheusAlcapone - 19.03.2013
pawn Код:
new vipexp[32];
format(vipexp, 32, dir_nivelsocial_Exp, GetPlayerNameEx(playerid)));
printf("%s", vipexp);
Re: DOF2 -
Mr.Hardy - 19.03.2013
Quote:
Originally Posted by matheus_alcapone
pawn Код:
new vipexp[32]; format(vipexp, 32, dir_nivelsocial_Exp, GetPlayerNameEx(playerid))); printf("%s", vipexp);
|
Isso nгo vai funcionar!!! Aonde q tб obtendo a informaзгo? :S
Re: DOF2 -
MatheusAlcapone - 19.03.2013
Teste.
pawn Код:
new vipexp[32];
format(vipexp, 32, dir_nivelsocial_Exp, GetPlayerNameEx(playerid)));
vipexp = DOF2_GetString(vipexp,"Linha que deseja ler do arquivo");
printf("%s", vipexp);
Re: DOF2 -
gunit_j - 19.03.2013
pawn Код:
#define dir_nivelsocial_Exp "usr/infousr/%dnivelsocial_exp.ini"
new vipexp[64];
format(vipexp, sizeof(vipexp), dir_nivelsocial_Exp, GetPlayerNameEx(playerid)));
printf("%s", vipexp);
Re: DOF2 -
Mr.Hardy - 19.03.2013
Quote:
Originally Posted by matheus_alcapone
Teste.
pawn Код:
new vipexp[32]; format(vipexp, 32, dir_nivelsocial_Exp, GetPlayerNameEx(playerid))); vipexp = DOF2_GetString(vipexp,"Linha que deseja ler do arquivo"); printf("%s", vipexp);
|
Quote:
Originally Posted by gunit_j
pawn Код:
#define dir_nivelsocial_Exp "usr/infousr/%dnivelsocial_exp.ini"
new vipexp[64]; format(vipexp, sizeof(vipexp), dir_nivelsocial_Exp, GetPlayerNameEx(playerid))); printf("%s", vipexp);
|
Nгo funcionou, ainda continua em branco :S
Re: DOF2 -
MatheusAlcapone - 19.03.2013
Explique o que vocк quer fazer.
Re: DOF2 -
ViniBorn - 19.03.2013
A extensгo tб correta?
Re: DOF2 -
Mr.Hardy - 19.03.2013
Eu quero obter a texto que estб no nome do jogador na INI "dir_nivelsocial_Exp" sem aspas.
Re: DOF2 -
gunit_j - 19.03.2013
Ops, Errei troque %d por %s e tente ..
pawn Код:
#define dir_nivelsocial_Exp "usr/infousr/%sNivelsocial_exp.ini"
new vipexp[64],Name[24];
GetPlayerName(playerid, Name, 24);
format(vipexp, sizeof(vipexp), dir_nivelsocial_Exp, Name);
printf("%s", vipexp);