foreach
#8

Quote:
Originally Posted by armyoftwo
View Post
Sorry for the late reply, but that actually worked thank you very much for explaining very detailed

EDIT:
The problem is now with loading the houses,
Code:
Iter_Create(Houses, MAX_HOUSES);
Itter_Create.

Quote:
Code:
    foreach(Houses,h)
    {
        LoadPlayerHouse(h);
    }
AND WHEN IT DOES "LoadPlayerHouse"
Code:
Itter_Add(Houses,houseid);
You can't cycle an itter via foreach if the itter lacks any information to begin with. You need to add to an itter via Itter_Add. To cycle those contents you can then use foreach(Houses,h). You are basically cycling an itter that has nothing in it.
Reply


Messages In This Thread
foreach[NOT SOLVED] - by armyoftwo - 05.07.2010, 22:20
Re: foreach - by ipsBruno - 05.07.2010, 22:54
Re: foreach - by armyoftwo - 05.07.2010, 23:13
Re: foreach - by DJDhan - 05.07.2010, 23:45
Re: foreach - by nemesis- - 06.07.2010, 02:19
Re: foreach - by armyoftwo - 10.07.2010, 22:11
Re: foreach - by armyoftwo - 11.07.2010, 12:03
Re: foreach - by nemesis- - 12.07.2010, 20:12
Re: foreach - by armyoftwo - 13.07.2010, 09:48
Re: foreach - by Macluawn - 20.01.2011, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)