Does your client or server print any errors?
|
I recently added some new ranks to my server (Super mod, Head of Staff) everything works perfectly all the commands are correct and the the yell is perfect but when i talk normally it dces anyone know how i can fix it?? sorry if its a stupid question i just recently started coding again
Nop it doesnt print any errors
Insidiax
so you want the crown before you talk?
yh i have all the crowns in the cache and each player right is matched to the modicon it just dc's as soon as the word i type comes above my head
if you want to add crowns before someone talks, go to client.java (Client Sided)
Search for this code
thats how you add crowns when someone speaksCode:if(myPrivilege == 4) { pushMessage(myPlayer.textSpoken, 2, "@cr0@" + "<col=13132800>"+getRank(myPlayer.skill)+"</col>" + myPlayer.name); } else if(myPrivilege == 3) { pushMessage(myPlayer.textSpoken, 2, "@cr2@" + "<col=13132800>"+getRank(myPlayer.skill)+"</col>" + myPlayer.name); } else if(myPrivilege == 2) { pushMessage(myPlayer.textSpoken, 2, "@cr2@" + "<col=13132800>"+getRank(myPlayer.skill)+"</col>" + myPlayer.name); } else if(myPrivilege == 1) { pushMessage(myPlayer.textSpoken, 2, "@cr1@" + "<col=13132800>"+getRank(myPlayer.skill)+"</col>" + myPlayer.name); } else { pushMessage(myPlayer.textSpoken, 2, "<col=13132800>"+getRank(myPlayer.skill)+"</col>" + myPlayer.name); }
EDIT - Check this code to see if its matches the others so it doesnt dc
i dont think this is relevant this is what i have!
case 1:
modIcons[0].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 2:
modIcons[1].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 3:
modIcons[2].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 4:
modIcons[3].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 5:
modIcons[4].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 6:
modIcons[5].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 7:
modIcons[6].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 8:
modIcons[7].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 9:
modIcons[8].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 10:
modIcons[9].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 11:
modIcons[10].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 12:
modIcons[11].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 13:
modIcons[12].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
case 14:
modIcons[13].drawSprite(xPos, yPos - 12);
xPos += 14;
break;
}
i fixed it thanks for any help
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |