21.12.2012, 19:31
What the hell is the problem with you? If your property does not have an owner, make the string "*" by simply assigning the value (no format, no strcat, no whatsoever, just simply = to assign).
To check if the property is unowned, do if(hInfo[h][hOwner][0] == '*'). Simple and quick, voila.
And there's really nothing to justify using strfind instead of strcmp if you've designed the system yourself and are aware of the array contents
To check if the property is unowned, do if(hInfo[h][hOwner][0] == '*'). Simple and quick, voila.
And there's really nothing to justify using strfind instead of strcmp if you've designed the system yourself and are aware of the array contents
