[reg] Help With World Server src

Submit your code requests, and if you are good at coding come help others with their requests.
Post Reply
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

hey guy ive been tryin to make hypnotoad wl source have .bak in it i got it to work but when u change maps it will dc u can some1 help me finsih this off heres the code i tryed to do

RequestSavePlayerData

Code: Select all

else {
  strcat(cFileName, "Character");
  strcat(cFileName, "\\");
  	strcat(cFileName, "\\");
  wsprintf(cDir, "AscII%d", *cCharName);
  strcat(cFileName, cDir);
  strcat(cFileName, "\\");
  strcat(cFileName, "\\");
  strcat(cFileName, cCharName);
  strcat(cFileName, ".txt");
	
                                ZeroMemory(cFileName, sizeof(cFileName));
                 ZeroMemory(cDir, sizeof(cDir));
                 strcat(cFileName, "Character");
                 strcat(cFileName, "\\");
                  strcat(cFileName, "\\");
                 wsprintf(cDir, "AscII%d", *cCharName);
                 strcat(cFileName, cDir);
                 strcat(cFileName, "\\");
                 strcat(cFileName, "\\");
                 strcat(cFileName, cCharName);	
                 strcat(cFileName, ".bak");
thx
ADDKiD
<3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Ok, Well Dax posted the fix for this somewhere in Server Source. It also might be in the HGServer side too, from what Juggalo2 mentioned. =)
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

I have it in my logs. I never really bothered to check if it works, but here's my code.

Code: Select all

	wsprintf(cTemp, "Character\\%s\\AscII%d\\%s.txt", m_cWLName, pCharName[0], pCharName);
	wsprintf(cTemp2, "Character\\%s\\AscII%d\\%s.bak", m_cWLName, pCharName[0], pCharName);
	DeleteFile(cTemp2);

	rename(cTemp, cTemp2);
	ZeroMemory(cTemp2, 200);
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

ADDKiD wrote: Ok, Well Dax posted the fix for this somewhere in Server Source. It also might be in the HGServer side too, from what Juggalo2 mentioned. =)
No i didnt.. lol

[EDIT] and Juggalo is a retard...
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

hmmmmm
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

i guess zero is the only ppl willin to help out
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

ADDKiD wrote: Ok, Well Dax posted the fix for this somewhere in Server Source. It also might be in the HGServer side too, from what Juggalo2 mentioned. =)
nvr said that its in the world srv side i ran tones of test and tis w/l im usuieng oginal exe an no porblems.

[EDIT] and Juggalo is a retard... [/CODE]

well fuck u dax how im i a retard fuck u nigger
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

juggalo2 wrote:
ADDKiD wrote: Ok, Well Dax posted the fix for this somewhere in Server Source. It also might be in the HGServer side too, from what Juggalo2 mentioned. =)
nvr said that its in the world srv side i ran tones of test and tis w/l im usuieng oginal exe an no porblems.

[EDIT] and Juggalo is a retard... [/CODE]

well fuck u dax how im i a retard fuck u nigger
Eh, I thought you did. I must be getting confused again.... Play nice Children ;)
Post Reply