IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Services Hazır Kodlar (https://www.ircforumlari.net/services-hazir-kodlar/)
-   -   Online Kullanici ve Kullanici Rekoru (https://www.ircforumlari.net/services-hazir-kodlar/36752-online-kullanici-ve-kullanici-rekoru.html)

Warrior 26 Şubat 2009 16:20

Cevap: Online Kullanici ve Kullanici Rekoru
 
Alıntı:

mabsk Nickli Üyeden Alıntı (Mesaj 551444)
Hatayi buldum. Hata bende degil buraya bu kodu yazanda. Hata su;

char buf2[BUFSIZE];
time_t now=time(NULL);

ekleyin deniyor ama

time_t now=time(NULL);

eklenmicek. Sadece ustteki eklenicek. Saygilar.

Arkadasım, ben dün gece kurdum eklentiyi, hic bir problem yok,
-
Bahsettiğin noktayı da aynen kullandım sorun yok, kodlar sağlam.

Cry 10 Ağustos 2009 12:57

Cevap: Online Kullanici ve Kullanici Rekoru
 
Anlatımda herhangi bir hata yok, önceki yaptığınız editlerde time_t now=time(NULL); satırı eklendiyse tekrar eklemenize gerek yok. İki kez aynı satır kullanılması sonucunda hata verir.

Argan 08 Şubat 2010 23:35

Cevap: Online Kullanici ve Kullanici Rekoru
 
modules/chanserv/main.c:269: warning: no previous prototype for 'ago_time'
modules/chanserv/main.c: In function 'do_info':
modules/chanserv/main.c:902: error: redefinition of 'now'
modules/chanserv/main.c:901: error: previous definition of 'now' was here
make[4]: *** [.compiled-main.o] Error 1

hatalı eksik birsey var.

----------

/************************************************** ***********************/
/* Return a /WHOIS response for ChanServ. */
static int chanserv_whois(const char *source, char *who, char *extra)
{
if (irc_stricmp(who, s_ChanServ) != 0)
return 0;
send_cmd(ServerName, "311 %s %s %s %s * :%s", source, who,
ServiceUser, ServiceHost, desc_ChanServ);
send_cmd(ServerName, "312 %s %s %s :%s", source, who,
ServerName, ServerDesc);
send_cmd(ServerName, "318 End of /WHOIS response.");
return 1;
}
void ago_time(char *buf, time_t t, User *u)
{
int days, hours, minutes, seconds;
days = t/(24*3600);
t %= 24*3600;
hours = t/3600;
t %= 3600;
minutes = t/60;
t %= 60;
seconds = t;
sprintf(buf,"%dgün,%dsaat,%ddakika ve %dsaniye önce", days, hours, minutes, seconds);
}


bu sekilde kodlama ama hata veriyor diyeyim.

Enterprise 09 Şubat 2010 00:16

Cevap: Online Kullanici ve Kullanici Rekoru
 
Alıntı:

Argan Nickli Üyeden Alıntı (Mesaj 1040318566)
modules/chanserv/main.c:269: warning: no previous prototype for 'ago_time'
modules/chanserv/main.c: In function 'do_info':
modules/chanserv/main.c:902: error: redefinition of 'now'
modules/chanserv/main.c:901: error: previous definition of 'now' was here
make[4]: *** [.compiled-main.o] Error 1

hatalı eksik birsey var.

do_info fonksiyonu içinde now değişkeni tanımlanmış olmasına rağmen tekrar tanımlanmış. Hata mesajında bildirilen satırları kontrol edin.

ref 15 Temmuz 2010 16:44

Cevap: Online Kullanici ve Kullanici Rekoru
 
ben yaptim hiçbir sıkıntı yok, herşey normal komutlar calisiyor ssh üzerinde calisirsaniza hata alirsiniz bende ilk ssh ile denedim hata aldim daha sonra editplus ile yaptim ve

-chanserv- Online kullanıcı : 6
-
-chanserv- Kullanıcı rekoru : 6 [0 gün, 0 saat, 4 dakika ve 21 saniye önce]

sonuç olarak başarili oldu , Teşekkürler kolay gelsin


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 15:14.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk