
[Src]->Friends List.
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

<a href=http://profile.xfire.com/sok0l><img src=http://miniprofile.xfire.com/bg/co/type/0/sok0l.png width=440 height=111></a>
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>
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>
-
- Loyal fan
- Posts: 391
- Joined: Sat Mar 26, 2005 12:41 am
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' />
-
- Outpost bitch
- Posts: 517
- Joined: Sat Nov 19, 2005 9:07 pm
- Location: I watch gay porn
- Contact:
Mine doesn't work ... and i made all what you posted...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![]()
<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.
ok marleythe9 i have an error.. when i add:
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>
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);
}
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>
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' />
-
- Loyal fan
- Posts: 391
- Joined: Sat Mar 26, 2005 12:41 am
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

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();
}
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' />
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
erase the should be like this:
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;
Code: Select all
LoadFriendList();
Code: Select all
case 70: //'F'
if (m_bCtrlPressed == TRUE && m_cGameMode == DEF_GAMEMODE_ONMAINGAME && (!m_bInputStatus) )
EnableDialogBox(43, NULL, NULL, NULL);
break;
srry i click on report :S but.. i dont understand what to do with the codes.. tell me again please.. and sorrymarleythe9 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 isalso inCode: 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(); }
Code: Select all
PointCommandHandler(int indexX, int indexY, char cItemID)
he means to put // in front of the ones he did on both codesNamesis wrote:srry i click on report :S but.. i dont understand what to do with the codes.. tell me again please.. and sorrymarleythe9 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 isalso inCode: 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(); }
Code: Select all
PointCommandHandler(int indexX, int indexY, char cItemID)
U suckMalcom89 wrote: I make something wrong... I can't close dialog boxes now...
<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)