|
| 01 Aug 2011 05:58 PM |
while true do if script.Parent.Parent.Parent.Character ~= nil then script.Parent.ShipName.Text = script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.Name.Value script.Parent.ArmorLevel.Text = "Armor: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.ArmorLevel.Value.."/"..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.MaxArmor.Value script.Parent.Power.Text = "Power: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.PowerLevel.Value.."/"..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.MaxPower.Value script.Parent.Fuel.Text = "Fuel: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.Fuel.Value.."/"..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.MaxFuel.Value script.Parent.BasicLaser.Text = "BasicLaser: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.BasicLaserAmmo.Value script.Parent.EliteLaser.Text = "EliteLaser: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.EliteLaserAmmo.Value script.Parent.IonBlast.Text = "IonBlast: " .. script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.IonBlastAmmo .. "/" .. script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.MaxIonBlast.Value
wait(.05) end end
the error comes up as string expected. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2011 05:59 PM |
| HolyFreakingCrapHaveYouEverHeardOfVariables?!?!??!?!?!??!??!?!?!???!?!?? |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 01 Aug 2011 05:59 PM |
Ok uh, wow that's a good chunk of code.
Line number of the error please? Or just mark the line? |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2011 06:00 PM |
@swimguy
xD err....I frogot to use them this time |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2011 06:01 PM |
| 0-0 Too. Freaking. Many. Lines. Just tell us what line the issue is in! |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2011 06:01 PM |
It didn't say which line all it said was string expected
The error only came up after I finished that script so I know it is from that. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2011 06:05 PM |
| I am going to restart this and use variables then come back to you guys if it doesn't work still. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2011 06:10 PM |
while true do if script.Parent.Parent.Parent.Character ~= nil then ShipSeat = script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat script.Parent.ShipName.Text = ShipSeat.Name.Value script.Parent.ArmorLevel.Text = "Armor: "..ShipSeat.ArmorLevel.Value.."/"..ShipSeat.MaxArmor.Value script.Parent.Power.Text = "Power: "..ShipSeat.PowerLevel.Value.."/"..ShipSeat.MaxPower.Value script.Parent.Fuel.Text = "Fuel: "..ShipSeat.Fuel.Value.."/"..ShipSeat.MaxFuel.Value script.Parent.BasicLaser.Text = "BasicLaser: "..ShipSeat.BasicLaserAmmo.Value script.Parent.EliteLaser.Text = "EliteLaser: "..ShipSeat.EliteLaserAmmo.Value --script.Parent.PlasmaLaser.Text = "PlasmaBattery: "..ShipSeat.PlasmaLaserAmmo script.Parent.IonBlast.Text = "IonBlast: " .. ShipSeat.IonBlastAmmo .. "/" .. ShipSeat.MaxIonBlast.Value
wait(.05) end end
same error |
|
|
| Report Abuse |
|
|
piedude5
|
  |
| Joined: 01 Mar 2010 |
| Total Posts: 190 |
|
|
| 01 Aug 2011 06:19 PM |
| Try putting a value in the lazer thingy, and it might work. |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 01 Aug 2011 06:29 PM |
This is going to sound weird, but put a space between the "'s and ..'s.
Apparently the .. operators like spaces. It's also just easier to read. |
|
|
| Report Abuse |
|
|