Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The World Prototype
#2
You obviously didn't read what is wroted about sharing variables if you use SUB. That's why it can't work.

replace first rows as:

Dim Shared money As Integer
Dim Shared strength As Integer
Dim Shared speed As Integer
Dim Shared babes As Integer
Dim Shared balls As Integer
Dim Shared cash As Integer
Dim Shared directions As Integer
Dim Shared knowledge As Integer

and more and more next variables which you use in SUB: stamina, name (this can not be shared, rename "name" variable for example  as PlayerName variable...)

Is possible also easy defined this variable:

Dim Shared as Integer money, stenght, speed, babes, balls, cash, directions, knwoledge, stamina
Dim Shared as String PlayerName

is the same as previous rows in my example.

Sub MainPart2:

Input X is integer, not string, it can not be N or S. Replace it as X$


Reply


Messages In This Thread
The World Prototype - by WriterHash - 08-31-2024, 08:12 AM
RE: The World Prototype - by Petr - 08-31-2024, 09:04 AM
RE: The World Prototype - by WriterHash - 08-31-2024, 10:03 AM
RE: The World Prototype - by WriterHash - 08-31-2024, 10:10 AM
RE: The World Prototype - by Pete - 08-31-2024, 04:47 PM
RE: The World Prototype - by TerryRitchie - 08-31-2024, 06:56 PM
RE: The World Prototype - by Pete - 08-31-2024, 07:29 PM



Users browsing this thread: 2 Guest(s)