Ehh.
Heeey.
I am so, so, so, so angry now. I am trying to fix this for the whole day, and no use yet.
I have two pointers, one is part of a class, another is a 'normal' char pointer.
Initialization of 1st is like:
class ptp
{
public:
char *name;
ptp()
{
name = "";
}
};
Initialization of the 2nd is normally,
Then, I assign values to those this way:
ptp[ClientID].name = agk::GetNetworkMessageString(msgid);
name = agk::ReadString(1);
So, one gets it's string from the network and other one from a file.
Thing is, when I want to compare them, (ptp[ClientID].name == name) it always returns
0, as they wouldn't be the same. When I run "debug", I check those values and this is what I get for example:
Quote: ".kamac. is NOT equal to .kamac."
This is how I am preparing that message:
char buffer[50000];
sprintf(buffer,".%s. is NOT equal to .%s.",ptp[myID].name, name);
agk::SetTextString(1,buffer);
This is driving me mad. Is there somebody to help?