foreach loop?

The time is right for a suicide!
Post Reply
User avatar
[FGS]Kalman
Throne/6G
Throne/6G
Posts: 931
Joined: 20 Aug 2010, 15:52
Location: 9th circle of hell
Contact:

foreach loop?

Post by [FGS]Kalman »

Hi!
I've got a problem. If I want to use the foreach allactors loop, it always says Call to 'AllActors' : Bad or missing parameter 2
This is the code:

Code: Select all

foreach AllActors(class'ChildMale', Childm)
		{
		Childm.EnterWorld();
		}
What is the problem?
Edit: I forgot to wrote, I set the local ChildMale Childm
Image
deadmau5 is Canada's apology for Justin Bieber!!
Image
User avatar
~][FGS][Nobody~
Illuminated
Illuminated
Posts: 5348
Joined: 26 Oct 2005, 16:59
Location: Schland!

Re: foreach loop?

Post by ~][FGS][Nobody~ »

Is ChildMale a subclass of Actor?
Is your foreach class executed in a class that is a subclass of Actor?
Nobody is perfect...
-----------------------
ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
Magus wrote:Maybe one day I will understand your arcane rituals of voting :)
chin.democ. wrote:You can use light bulbs that emit light, and when shot, do not.
synthetic wrote:and while every person is interesting in their own unique ways, there is some degree of uniqueness that a doctor can help with.
~ô¿ô~][FGS][Nobody~ said: THERE IS NO SPOON!
~¤¥ÐJ¥¤~ said: THERE IS NO CAKE!
User avatar
[FGS]Kalman
Throne/6G
Throne/6G
Posts: 931
Joined: 20 Aug 2010, 15:52
Location: 9th circle of hell
Contact:

Re: foreach loop?

Post by [FGS]Kalman »

ChildMale is a ScriptedPawn, and I want this in a missionscript, both is a subclass of Actor
But nvm, i reinstalled my sdk, it works now, idk what was the problem :/
Image
deadmau5 is Canada's apology for Justin Bieber!!
Image
User avatar
[FGS]FlyingGhost
TheDragonMaster
TheDragonMaster
Posts: 862
Joined: 16 May 2008, 19:16
Location: World: Earth Year: 5348 Location: (45673,08664)

Re: foreach loop?

Post by [FGS]FlyingGhost »

what language is that? c# java? ... ?
Mounir12 wrote:Hey guys i am Mounir i was banned cus i lam bugged so someone can unban me (btw i want to be memeber of fgs)
~DJ~ wrote:I don't want to discuss anymore, he's outta his mind!111
ShadowRunner wrote:Altfire is not altfire without Ichotolot...
User avatar
[FGS]FlyingGhost
TheDragonMaster
TheDragonMaster
Posts: 862
Joined: 16 May 2008, 19:16
Location: World: Earth Year: 5348 Location: (45673,08664)

Re: foreach loop?

Post by [FGS]FlyingGhost »

what language is that? c# java? ... ?
Mounir12 wrote:Hey guys i am Mounir i was banned cus i lam bugged so someone can unban me (btw i want to be memeber of fgs)
~DJ~ wrote:I don't want to discuss anymore, he's outta his mind!111
ShadowRunner wrote:Altfire is not altfire without Ichotolot...
User avatar
~][FGS][Nobody~
Illuminated
Illuminated
Posts: 5348
Joined: 26 Oct 2005, 16:59
Location: Schland!

Re: foreach loop?

Post by ~][FGS][Nobody~ »

It was UnrealScript!

But yeah.. that reinstalling SDK solved the problem is weird tho..
It would have been interested to examine the issue. :o
Nobody is perfect...
-----------------------
ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
Magus wrote:Maybe one day I will understand your arcane rituals of voting :)
chin.democ. wrote:You can use light bulbs that emit light, and when shot, do not.
synthetic wrote:and while every person is interesting in their own unique ways, there is some degree of uniqueness that a doctor can help with.
~ô¿ô~][FGS][Nobody~ said: THERE IS NO SPOON!
~¤¥ÐJ¥¤~ said: THERE IS NO CAKE!
Post Reply