A problem I can't identify
#1
function TagCharacterGiveGUI(player)
_G character = player.Character
local i = game.Storage.Top
local o = game.Storage.Bottom

(This isn't the whole script)

So apparently an "=" was expected on line 2 near character
Reply
#2
_G.character

You forgot the dot.
Reply
#3
Whoops

I overlooked it because I was busy searching for a missing equals sign.
Reply
#4
When it says [something] "expected near" [string], you forgot something (not neccessarily [something]) directly before [string]. It confused me for a few weeks before I finally got that into my head.
Reply
#5
I see.
I spent weeks trying to grasp what an < eof > was in roblox X3
Reply
#6
I used to make a lot of prank gear, like Epic Fail Reset Drink and Ro-Hot Candy. So when I first found Output (I cannot believe I managed to script for 4 months without it) and saw that...

"Eat Other Food?"

Oh wait...

"E[nd]Of[Script]."
Reply
#7
(08-01-2011, 06:50 PM)Qwertygiy Wrote: I used to make a lot of prank gear, like Epic Fail Reset Drink and Ro-Hot Candy. So when I first found Output (I cannot believe I managed to script for 4 months without it) and saw that...

"Eat Other Food?"

Oh wait...

"E[nd]Of[Script]."

4 months?

I used it from the start, but had no idea what it was trying to tell me except for which line the error was on

and even then it threw me off, because when it said something like

error at line 5 near banana

(e.g. the line was game.workspace.banana)

I had no idea what was wrong, but it was referring to the next line >:
Reply
#8
I only found it because I finally searched the ROBLOX wiki to find out what print() meant. Tongue I learned Lua via free models... the ROBLOX wiki is pretty hard to understand for a beginner to programming.
Reply
#9
(08-01-2011, 07:07 PM)Qwertygiy Wrote: I only found it because I finally searched the ROBLOX wiki to find out what print() meant. Tongue I learned Lua via free models... the ROBLOX wiki is pretty hard to understand for a beginner to programming.

Really?

I learnt through the page called the Absolute Beginners Guide to Scripting

I had to read few it a few times and absorb a bit more each time, but it's served me well
Reply
#10
I absorbed the basics (function, if-then, while true do, for q = 1, #table do, wait(), etc) via free models and then once I knew what they were talking about I was able to use the wiki as reference.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)