Command Help: Dynamic House Create
#7

Quote:
Originally Posted by wakeuptomer
Посмотреть сообщение
If not it's not correct please show me how you do it.
because i will never understand how.
Thank's for the help.

pawn Код:
for(new idx = 0,idx<MAX_HOUSES; idx++)
It's correct now, you can try an complie it. And check it by yourself.
Just a little TIP! Always, MAX_HOUSES would not be loaded.

Explanation:
If your MAX_HOUSES is set to 500
It will load everything from 0 to 499.
500 will not be loaded, cause it says while id is less then 500.

So it basicly does:
pawn Код:
if(idx != 500) {...} // (if idx does not(!=) equels to 500)
When it reaches 500, it does:
pawn Код:
if(500 != 500) {...} // (if idx(500) does not(!=) equel to 500)
// But it does equel to 500, so it won't run and just end the process.
Reply


Messages In This Thread
Command Help: Dynamic House Create - by wakeuptomer - 03.02.2014, 16:03
Re: Command Help: Dynamic House Create - by wakeuptomer - 03.02.2014, 16:51
Re: Command Help: Dynamic House Create - by BullseyeHawk - 03.02.2014, 16:58
Re: Command Help: Dynamic House Create - by wakeuptomer - 03.02.2014, 17:05
Re: Command Help: Dynamic House Create - by BullseyeHawk - 03.02.2014, 17:07
Re: Command Help: Dynamic House Create - by wakeuptomer - 03.02.2014, 17:18
Re: Command Help: Dynamic House Create - by BullseyeHawk - 03.02.2014, 17:23
Re: Command Help: Dynamic House Create - by sammp - 03.02.2014, 17:24
Re: Command Help: Dynamic House Create - by wakeuptomer - 03.02.2014, 17:32
Re: Command Help: Dynamic House Create - by Hoborific - 03.02.2014, 17:41

Forum Jump:


Users browsing this thread: 4 Guest(s)