Type Trouble

Blitz3D Forums/Blitz3D Programming/Type Trouble

How to look like an idiot:

Step 1: Using an example from a book, try to use the code to program a shooting game. Miss several lines of code.

Step 2: Check the code on the last page numerous times while forgetting to check the code on the previous page.

Step 3: Post your question online to ask for help while hinting at the problem being a piece of code that functions perfectly. Involve five other people in a forum trying to find out what's wrong.

Step 4: Try every suggestion without success and keep trying to find the answer from the wrong piece of code. Finnaly discover the lines of code you miss, which happen to be some of the most important parts.

Step 5: Post he newly discovered code when it is asked for. Try to solve the nagging "Entity does not exist error" by inserting the code If entity=True. Solve the "Illegal type conversion error" by deleting the new code.

Step 6: Repeat step five dozens of times with different methods to try to elliminate the errors.

step 7: Discover that the problem is that when the soldier touches the ground in the building, the entity no longer has a name.

Solution: change

If entity=True

to

If entity<>Null


Thanks for the help guyes!
;)