SA-MP Forums Archive
[AJUDA] - 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] (/showthread.php?tid=308577)



[AJUDA] - Rodrigo_Avenged - 04.01.2012

Ola Galer a, Belezinha ?

Gostaria de saber se algum de voces tem algum sistema de Log de socio


Tipo , eu dou socio pra pessoa , e fica em um arquivo chamado socio.log

Uso


Re: [AJUDA] - Lуs - 04.01.2012

Logs Dinвmicos! [Losgs]

No comando para dar sуcio:

pawn Код:
new celulas[100], Nome[24];
if(!fexist("Socio.log")) return CriarLog("Socio.log");
GetPlayerName(playerid, Nome, 24);
format(celulas, sizeof(celulas), "%s deu sуcio para alguйm", Nome);
EscreverLog("Socio.log", celulas);
return 1;
Esse sу foi um exemplo


Re: [AJUDA] - Rodrigo_Avenged - 04.01.2012

Haa, . Muito Obrigado Los , Voce sempre me Ajudando *-* :d +rep


Re: [AJUDA] - Rodrigo_Avenged - 04.01.2012

Deu 1 erro aqui :

Quote:

C:\Users\casa\Desktop\a\gamemodes\BGS.pwn(34494) : error: 017: undefined symbol "CriarLog"
C:\Users\casa\Desktop\a\gamemodes\BGS.pwn(34497) : error: 017: undefined symbol "EscreverLog"




Re: [AJUDA] - WeenSoares_ - 04.01.2012

Use o meu, que Lуs mesmo me ajudou:
pawn Код:
new string[100], playername[MAX_PLAYER_NAME];
    new File:arquivo = fopen("Logs.ini", io_append);
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "%s deu sуcio para alguйm", playername);
    fwrite(arquivo, string);
    fclose(arquivo);



Re: [AJUDA] - Lуs - 04.01.2012

Quote:
Originally Posted by Rodrigo_Avenged
Посмотреть сообщение
Deu 1 erro aqui :
Basta colocar a include no seu gm:

pawn Код:
#include <Losgs>