English What's wrong here?

11 replies
Goto Page
To the start Previous 1 Next To the start
23.03.12 03:15:51 am
Up
4Vendetta
User
Offline Off
Code:
1
2
3
4
5
function _endround()
     for _,id in ipairs(player(0,"team1")) do
          parse("makect "..id)
     end
end
IMG:http://orig12.deviantart.net/d660/f/2015/294/4/a/loki_free_icon_smite_by_cuti_chan-d9dwjst.gif
No one can play Masturball... IMG:http://orig08.deviantart.net/2bdc/f/2015/360/1/f/khepri_free_icon_smite_by_cuti_chan-d9llycr.gif
23.03.12 03:27:54 am
Up
Apache uwu
User
Offline Off
Looks fine at a glance, do you have any other conflicting code?
23.03.12 10:49:54 am
Up
4Vendetta
User
Offline Off
user Apache uwu has written:
Looks fine at a glance, do you have any other conflicting code?

Only this part of my script isn't working.
IMG:http://orig12.deviantart.net/d660/f/2015/294/4/a/loki_free_icon_smite_by_cuti_chan-d9dwjst.gif
No one can play Masturball... IMG:http://orig08.deviantart.net/2bdc/f/2015/360/1/f/khepri_free_icon_smite_by_cuti_chan-d9llycr.gif
23.03.12 10:51:37 am
Up
DannyDeth
User
Offline Off
What is the error message given? Also, try and change from ipairs to pairs.
23.03.12 10:52:57 am
Up
Infinite Rain
Reviewer
Offline Off
Why don't you use TABS? Long codes would be unreadable then!
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
23.03.12 02:38:02 pm
Up
Apache uwu
User
Offline Off
Did you add a hook?

Code:
1
2
3
4
5
6
7
addhook("endround","_endround")

function _endround()
     for _,id in ipairs(player(0,"team1")) do
          parse("makect "..id)
     end
end
23.03.12 05:21:35 pm
Up
4Vendetta
User
Offline Off
@user Infinite Rain: I don't like Tables.
@user Apache uwu: yes, bt I've trying another thing, I thinks this'll works!
IMG:http://orig12.deviantart.net/d660/f/2015/294/4/a/loki_free_icon_smite_by_cuti_chan-d9dwjst.gif
No one can play Masturball... IMG:http://orig08.deviantart.net/2bdc/f/2015/360/1/f/khepri_free_icon_smite_by_cuti_chan-d9llycr.gif
24.03.12 12:13:05 am
Up
Chex
User
Offline Off
user 4Vendetta has written:
@user Infinite Rain: I don't like Tables.
@user Apache uwu: yes, bt I've trying another thing, I thinks this'll works!


He said tabs .. and IMO everyone should tab because it just makes life sooo much easier --'
Who needs a sig?
24.03.12 09:28:54 am
Up
Blpzz9
User
Offline Off
Lol Script failed!
IMG:http://img337.imageshack.us/img337/3862/48541.png
24.03.12 10:21:23 am
Up
Infinite Rain
Reviewer
Offline Off
user 4Vendetta has written:
@user Infinite Rain: I don't like Tables.
@user Apache uwu: yes, bt I've trying another thing, I thinks this'll works!

Not tables -.- TABS!
Your script:
Code:
1
2
3
4
5
function _endround()
for _,id in ipairs(player(0,"team1")) do
parse("makect "..id)
end
end


must be:

Code:
1
2
3
4
5
function _endround()
     for _,id in ipairs(player(0,"team1")) do
          parse("makect "..id)
     end
end


That's called "Tabbing"!!!
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
24.03.12 10:45:57 am
Up
DannyDeth
User
Offline Off
@user Infinite Rain:
Actually it's called "indenting".
24.03.12 02:21:47 pm
Up
4Vendetta
User
Offline Off
I've already fixed it thanks everyone!
IMG:http://orig12.deviantart.net/d660/f/2015/294/4/a/loki_free_icon_smite_by_cuti_chan-d9dwjst.gif
No one can play Masturball... IMG:http://orig08.deviantart.net/2bdc/f/2015/360/1/f/khepri_free_icon_smite_by_cuti_chan-d9llycr.gif
To the start Previous 1 Next To the start