Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Write to ini with Kill script using player's nick and join function not working right
Re: Write to ini with Kill script using player's nick and join function not working right [message #379342 is a reply to message #379208] Thu, 09 April 2009 01:02 Go to previous messageGo to previous message
whtdrgnpl is currently offline  whtdrgnpl
Messages: 17
Registered: July 2007
Karma:
Recruit
Well I fixed all but these
Quote:

int num = atoi(lpBuff); //USE OF UNINITIALIZED MEMORY (crash?)
GetPrivateProfileString(pName, building, "0", lpBuff3, 256, "C:\\westwood\\RenegadeFDS\\Server\\Buildings.ini"); //USE OF UNITIALIZED MEMORY (building)
WritePrivateProfileString(pName, building, buffer, "C:\\westwood\\RenegadeFDS\\Server\\Buildings.ini"); //USE OF UNINITIALIZED MEMORY (building)
}

I don't get what's uninitialized on the first one Dont Get It and isn't building initialized here? O.o
char building[256];
GetPrivateProfileString("BuildingID2", buildingid, "N", lpBuff2, 256, "C:\\westwood\\RenegadeFDS\\Server\\ID2.ini")
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Glitch or No Glitch?
Next Topic: Mods
Goto Forum:
  


Current Time: Wed Feb 12 09:29:37 MST 2025

Total time taken to generate the page: 0.00902 seconds