Houses always bought by NULL or 0
#10

Quote:
Originally Posted by AndreT
Посмотреть сообщение
The strlen check has no point. The length for string "0" is still 1, not 0.

I'd suggest coming up with a better solution such as using unique player IDs (database-driven) in your house owner checks or changing strlen checks to check if the string is 0 or NULL.
As I said, checking if it's NULL doesn't work as well - nor the isnull macro does.
Reply


Messages In This Thread
Houses always bought by NULL or 0 - by Jochemd - 22.11.2011, 15:07
Re: Houses always bought by NULL or 0 - by sim_sima - 22.11.2011, 15:29
Re: Houses always bought by NULL or 0 - by Jochemd - 22.11.2011, 15:32
Re: Houses always bought by NULL or 0 - by Calgon - 22.11.2011, 15:56
Re: Houses always bought by NULL or 0 - by Jochemd - 22.11.2011, 16:02
Re: Houses always bought by NULL or 0 - by sim_sima - 22.11.2011, 16:07
Re: Houses always bought by NULL or 0 - by Jochemd - 22.11.2011, 16:08
Re: Houses always bought by NULL or 0 - by sim_sima - 22.11.2011, 16:09
Re: Houses always bought by NULL or 0 - by AndreT - 22.11.2011, 17:08
Re: Houses always bought by NULL or 0 - by Jochemd - 22.11.2011, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)