Solution it the Error for the record!!!
Ok, here's what I modified it to, works with no errors now.
p.s. probably not the most elegant code, but it works and I understand it!!
Thanks again for all the help!!
function AddFactions(integer C)
sequence FactionName, FactionPassword, Correct
integer ReturnCode
while C do
FactionName = prompt_string("Input the name of the new Faction\n")
FactionPassword = prompt_string("Input the Factions password\n")
puts(1, "\n")
puts(1, "The Faction name is: ")
puts(1, FactionName)
puts(1, "\nThe Password is: ")
puts(1, FactionPassword)
puts(1, "\n")
Correct = prompt_string("Is this correct? y/n")
if compare(Correct, "y") = 0 then
ReturnCode = 1
return ReturnCode
end if
end while
end function
|
Not Categorized, Please Help
|
|