[Ajuda] Dof 2 - 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] Dof 2 (
/showthread.php?tid=604252)
Dof 2 -
capron - 02.04.2016
Alguйm de ajuda com um sistema bбsico?
Salvando Ip do player!
PHP код:
new pIp[18], Arquivo[50];
GetPlayerIp(playerid, pIp, sizeof(pIp));
format(Arquivo, sizeof(Arquivo), PlayerFile, DName);
DOF2_SetString(Arquivo, "IP", pIp);
DOF2_SaveFile();
Ok, queria ajuda pra ler o IP do jogador!
OnPlayerConnect
PHP код:
new Arquivo[50];
format(Arquivo, sizeof(Arquivo), PlayerFile, Nomee(playerid));
if(DOF2_FileExists(Arquivo))
{
if(strcmp //Creio q comece assim ! OBS: ainda aprendendo DOF2 ><, ajuda aqq!
{
APlayerData[playerid][Logado] = true;
}
}
Auto Login ! alguem ajuda?

Re: Dof 2 - Whoo - 02.04.2016
PHP код:
DOF2::GetString(filй, "IP");
Retira aquele
if strcmp
Re: Dof 2 -
capron - 02.04.2016
@ Resolvido, Obrigado!!