Thanks for the reply. I am trying to create a function for one I already have, such as figuring a player integer. I need to be able to incrementally increase a variable for some other triggers and, in addition, I am trying to figure out how to create and use function definitions.
@Krakarn: Go
Thanks for the reply. I am trying to create a function for one I already have, such as figuring a player integer. I need to be able to incrementally increase a variable for some other triggers and, in addition, I am trying to figure out how to create and use function definitions.
@MTops: Go
I tried to paste the code but its just a wall of text.
So I am trying to make a function which will return a player as a number. Player one returns 1 and so on....
I have an integer Local Variable (CurrentPlayer)
I have a For Each Integer loop for CurrentPlayer
If - Triggering player == CurrentPlayer
Then - Return CurrentPlayer
Else - Set Variable CurrentPlayer = CurrentPlayer + 1
and I get a compiling error. I am new to programming so forgive my ignorance. What have I done wrong, and how can I fix it?