Lua:
function tabbingtutorial(cid) --functions are on first "column"
local cookie = chocolate -- variables should be in same column as their function or statement
if playerlearn then --if functions are on next "column"
doplayeraddcookie(cid,cookie) --any thing inside that is in next "column"
if hascookiealready(cid) then --even if its another if function inside, its tabbed
setplayernocookie(cid) --and etc..stuff inside that is tabbed.
end --this ends the function in its "column" (if tabbed correct)
elseif not playerlearn then --else and elseif functions go in same column as previous if statement
local fish = marlin --variables should be in same column as their function or statement
doplayerslapwithfish(cid,fish) --and same rules apply
end --ends the if statements in the column. (if tabbed correct)
return true --returns the function true, should be inside the function so its on second column. (for syntax coloring use "true" not "TRUE"
end --ends the function (if tabbed correctly)