Command Help: Dynamic House Create
#5

Quote:
Originally Posted by wakeuptomer
Посмотреть сообщение
So i did it like it.
pawn Код:
new idk, MAX_HOUSES, idkx++;
Again,
Quote:
Originally Posted by BullseyeHawk
Посмотреть сообщение
You're using a "new", while you should use a "for" loop.
"new" explantion -> https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables
"for" loop -> https://sampwiki.blast.hk/wiki/Loops

Focus on the line,
pawn Код:
new idx<MAX_HOUSES, idx++;
You need to use a for loop(Tutorial), NOT new.
EDIT: And when I mean not a new, I mean not as a starter. You need to use the full for syntax.
pawn Код:
for( ; ; ) { .. }
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: 3 Guest(s)