[Src]->Friends List.

Codes submitted by developers and people of outpost. Come here to get codes for your client sources.
Post Reply
sokol
Loyal fan
Posts: 228
Joined: Mon May 02, 2005 7:28 pm
Location: P(r)oland

Post by sokol »

look on hbpoland.pl, they got 3 programers and its down for now coz they doing own files from 0 coz hbx have lot of no needed code, 1st server in 100% own files comming lol i saw the new mls already its look difrent ;)
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Client crashes when click ADD then click on the player... :unsure:
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
jonisan
Member
Posts: 164
Joined: Sat Jan 07, 2006 1:14 pm
Location: Fin

Post by jonisan »

Mmh. So anyone can say even 1 server what got working this friends list ?
<img src='http://i72.imagethrust.com/i/160466/newww.png' border='0' alt='user posted image' /><br><br><img src='http://img154.imageshack.us/img154/9360/tagi7wk.png' border='0' alt='user posted image' /><br><br><img src='http://img446.imageshack.us/img446/6094/uusi0xr.png' border='0' alt='user posted image' /><br><br><img src='http://img73.imageshack.us/img73/9738/xpuser3xy.png' border='0' alt='user posted image' /><br><br><b><u><span style='color:red'>Noobie List:</span></u></b><br><span style='color:blue'><i>BlueChristmas</i></span>
Murder
just visiting
Posts: 1
Joined: Sat Jul 15, 2006 5:45 pm

Post by Murder »

Hey diuuude plz can u put here the modifications you do to the codes, because i'm tryed some things but it doesn't work... You say your codes work corectly; plz put it here...
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

mine works, only problem i have is the default selected thing, it will select nothing if u havent selected a freind and if u hit delete it will crash your client, other then that mine works great :)
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

marleythe9 wrote: mine works, only problem i have is the default selected thing, it will select nothing if u havent selected a freind and if u hit delete it will crash your client, other then that mine works great :)
Mine doesn't work ... and i made all what you posted...
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

ok marleythe9 i have an error.. when i add:

Code: Select all

void CGame::LoadFriendList() //some polish friends helped me.
{
char buf[1024];
int konieclinii;
unsigned long linie=0;
//new load by char name
char cFn[256]/*, cTemp[255]*/;
wsprintf(cFn,"contents\\friends\\%s.txt", m_cPlayerName);
FILE* f=fopen(cFn,"rt");
m_iTotalFriends=0;
if(f == NULL) {
FILE* c=fopen(cFn, "w");
fclose(c);
}
while(fgets(buf,1024,f)){
  konieclinii=0;
  int i=strlen(buf);
  if(i>0 && buf[--i]=='\n'){
    buf[i]=0; // kasujemy znak konca linii
    konieclinii=1;
    linie++;
  }
if (linie-1<13) {
strcpy(m_cFriends[linie-1],buf);
m_iTotalFriends++;
}
}
if (m_iTotalFriends>12) m_iTotalFriends=12;
fclose(f);
}
void CGame::SaveFriendList()
{
char cFn[256]/*, cTemp[255]*/;
wsprintf(cFn,"contents\\friends\\%s.txt", m_cPlayerName);
FILE* f=fopen(cFn,"w");
int i;
char wr[12];
for (i=0;i<m_iTotalFriends;i++) {
ZeroMemory(wr,sizeof(wr));
wsprintf(wr,"%s\n",m_cFriends[i]);
fputs(wr,f);
}
fclose(f);
}
1. when i open the friendlist my client crashed.. but i try without adding that and it works.. but if i dont have that one working, i will have with all players same friendlist player.. so.. can you fix? :S ty

2. what means: cFn,"contents\\friends\\%s.txt", that i need to make in contents/ a new .txt file, named: friends.txt ?? I hope you can give me answer fast :)

Thanks

EDIT: i make a new folder inside Content's folder named: friends, and when i entered on the game, i opened the friendlist and it crashed :S but in the friend folder was a .txt file with my char.. what can i do? :(

EDIT2: i entered again and it opened good.. but when i close the client, it gives me errors... :S what can I do?!?! plzzzzz HELPPPPPPPPP
Error: click <a href='http://www.savefile.com/files2.php?fid= ... key=387425' target='_blank'>error</a>
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

debug it.
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

Tafka12 wrote: debug it.
ookkkayyy ill try
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »


well reason why is that mabey this right here and your trying to deleteing a line that dose not exist or, change the Save point instead of it saveing when you close the client have it like save when you log out or close the Friends list.

just look at your Savefriends and loadfriends functions ;), you may need to change there positions. well loadfriends heh, should work if u didnt crash.

and yes you do need a Friends folder in your content.

this is were my save function is

Code: Select all

  else {
  	m_cLogOutCount = -1;
  	AddEventList(DLGBOX_CLICK_SYSMENU2, 10);
  	DisableDialogBox(19);
  }
  PlaySound('E', 14, 5);
  //memcpy(m_cFriends[m_iTotalFriends],m_cMCName,10);
  //m_iTotalFriends++;
  //m_stDialogBoxInfo[43].sV1=0;
  SaveFriendList();
	}
also in

Code: Select all

PointCommandHandler(int indexX, int indexY, char cItemID)
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

ok another thing..

i see that in the hb when you pressed letter f the friend list come up so.. erase a line on this

Code: Select all

case 70: //'F'
if (m_bCtrlPressed == TRUE && m_cGameMode == DEF_GAMEMODE_ONMAINGAME && (!m_bInputStatus) )
LoadFriendList();
EnableDialogBox(43, NULL, NULL, NULL);
break;
erase the

Code: Select all

LoadFriendList();
should be like this:

Code: Select all

case 70: //'F'
if (m_bCtrlPressed == TRUE && m_cGameMode == DEF_GAMEMODE_ONMAINGAME && (!m_bInputStatus) )
EnableDialogBox(43, NULL, NULL, NULL);
break;
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

marleythe9 wrote: well reason why is that mabey this right here and your trying to deleteing a line that dose not exist or, change the Save point instead of it saveing when you close the client have it like save when you log out or close the Friends list.

just look at your Savefriends and loadfriends functions ;), you may need to change there positions. well loadfriends heh, should work if u didnt crash.

and yes you do need a Friends folder in your content.

this is were my save function is

Code: Select all

  else {
  	m_cLogOutCount = -1;
  	AddEventList(DLGBOX_CLICK_SYSMENU2, 10);
  	DisableDialogBox(19);
  }
  PlaySound('E', 14, 5);
  //memcpy(m_cFriends[m_iTotalFriends],m_cMCName,10);
  //m_iTotalFriends++;
  //m_stDialogBoxInfo[43].sV1=0;
  SaveFriendList();
	}
also in

Code: Select all

PointCommandHandler(int indexX, int indexY, char cItemID)
srry i click on report :S but.. i dont understand what to do with the codes.. tell me again please.. and sorry
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Namesis wrote:
marleythe9 wrote: well reason why is that mabey this right here and your trying to deleteing a line that dose not exist or, change the Save point instead of it saveing when you close the client have it like save when you log out or close the Friends list.

just look at your Savefriends and loadfriends functions ;), you may need to change there positions. well loadfriends heh, should work if u didnt crash.

and yes you do need a Friends folder in your content.

this is were my save function is

Code: Select all

  else {
  	m_cLogOutCount = -1;
  	AddEventList(DLGBOX_CLICK_SYSMENU2, 10);
  	DisableDialogBox(19);
  }
  PlaySound('E', 14, 5);
  //memcpy(m_cFriends[m_iTotalFriends],m_cMCName,10);
  //m_iTotalFriends++;
  //m_stDialogBoxInfo[43].sV1=0;
  SaveFriendList();
	}
also in

Code: Select all

PointCommandHandler(int indexX, int indexY, char cItemID)
srry i click on report :S but.. i dont understand what to do with the codes.. tell me again please.. and sorry
he means to put // in front of the ones he did on both codes
Malcom89
just visiting
Posts: 9
Joined: Thu Apr 13, 2006 4:49 pm

Post by Malcom89 »

I make something wrong... I can't close dialog boxes now...
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

Malcom89 wrote: I make something wrong... I can't close dialog boxes now...
U suck
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Post Reply