Sign up Fresh
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Sign up Fresh

Sign up for StayinFresh
 
HomeLatest imagesSearchRegisterLog in

 

 Spot the Errors.

Go down 
3 posters
AuthorMessage
Skelebob
Administrator



Posts : 8
Join date : 2009-07-25

Spot the Errors. Empty
PostSubject: Spot the Errors.   Spot the Errors. I_icon_minitimeWed Jul 29, 2009 2:05 pm

You are trying to give someone Moderator, and you put in a code but it doesnt work, you get 100 errors.
Try and figure out why

Your Code
Code:

if(cmd[1].equals("givemod")) {
if(username.equalsIgnoreCase("Skelebob"))) {
for(Player pl : Engine.players) {
pl.rights = 2;
p.frames.sendMessage(pl, "You are now a mod";)
}
}
else
{
sendMessage("You're a gay, +p.username+");
}
}
frames.sendMessage(pl, "p.username +" is now a mod!);
}

If you get it right, if you at some point in time join my server, u can have Player Mod for free Smile
Back to top Go down
Shadowkilla
Administrator
Shadowkilla


Posts : 17
Join date : 2009-07-25

Spot the Errors. Empty
PostSubject: Re: Spot the Errors.   Spot the Errors. I_icon_minitimeThu Jul 30, 2009 1:38 am

lol ill let the noobies figure it out easy. lol
Back to top Go down
cakeman




Posts : 3
Join date : 2009-07-26

Spot the Errors. Empty
PostSubject: Re: Spot the Errors.   Spot the Errors. I_icon_minitimeMon Aug 03, 2009 1:04 am

brakets? to many? and else isn't supost to be there?
Back to top Go down
Sponsored content





Spot the Errors. Empty
PostSubject: Re: Spot the Errors.   Spot the Errors. I_icon_minitime

Back to top Go down
 
Spot the Errors.
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Sign up Fresh :: Your first category :: Your first forum-
Jump to: