The adding code is for checking the "leader-only party commands".
But these codes:
Code: Select all
} elsif ($arg1 eq "request" || $arg1 eq "share" || $arg1 eq "kick" || $arg1 eq "leader") {
.......
Moderators: Moderators, Developers
Code: Select all
} elsif ($arg1 eq "request" || $arg1 eq "share" || $arg1 eq "kick" || $arg1 eq "leader") {
.......
Code: Select all
party request 1
You are the party leader.
TestPlayer1 entrou no seu grupo '"Test Party"'
TestPlayer1 aceitou seu pedido.
party
----------Grupo-----------
"Test Party"
# Nome Mapa Online HP
0 (A) TestKore prontera 181, 100 Sim 540/540 (100%)
1 TestPlayer1 prontera 182, 97 Sim 13480/13480
(100%)
--------------------------
party leader 1
You are the party leader.
New party leader: TestPlayer1
New party leader: TestKore
party kick 1
You are the party leader.
EXP do grupo Dividida Individualmente.
Party TestPlayer1 left the party (kicked)
EXP do grupo Dividida Individualmente.
Code: Select all
party leader 1
You are the party leader.
New party leader: TestPlayer1
party kick 0
Error in function 'party kick'
You must be the party leader in order to use this !
party leader 0
Error in function 'party leader'
You must be the party leader in order to use this !
party share 0
Error in function 'party share'
You must be the party leader in order to use this !
} elseif ($arg1 eq "request" || $arg1 eq "share" || $arg1 eq "kick" || $arg1 eq "leader") {sofax222 wrote:The r8141 commited by marcellofoes seems something wrong !
The adding code is for checking the "leader-only party commands".
But these codes:Make the followings "elsif"'s never be excuted !!Code: Select all
} elsif ($arg1 eq "request" || $arg1 eq "share" || $arg1 eq "kick" || $arg1 eq "leader") { .......
5e13ct wrote:} elseif ($arg1 eq "request" || $arg1 eq "share" || $arg1 eq "kick" || $arg1 eq "leader") {sofax222 wrote:The r8141 commited by marcellofoes seems something wrong !
The adding code is for checking the "leader-only party commands".
But these codes:Make the followings "elsif"'s never be excuted !!Code: Select all
} elsif ($arg1 eq "request" || $arg1 eq "share" || $arg1 eq "kick" || $arg1 eq "leader") { .......
http://www.devdaily.com/blog/post/perl/perl-if-else-elsif-syntax-example wrote:The Perl "else if" syntax (elsif)
In Perl the "else if" syntax actually uses the elsif keyword. Here's some example code showing this syntax:
Code: Select all
if ($condition1) { # do something } elsif ($condition2) { # do something else } elsif ($condition3) { # yada } else { # do the 'else' thing }