Thank's for your reply, i did it but i doesn't work, here is my code :
Code:
if(infos.length == 0)return;
String items = _perso.getItemsIDSplitByChar(";"); // it's the function that take the value of the field and separate the IDS by ";"
String[] item = items.split(";");
int id = 141375;
for (int i = 0; i < item.length; i++)
{
if (item[i] != null && item[i].equals(id)) {
SocketManager.GAME_SEND_MESSAGE(_perso, "You have the item", Ancestra.COLOR_BLEU2);
break;
}
else
{
SocketManager.GAME_SEND_MESSAGE(_perso, "You don't have the item", Ancestra.COLOR_ERROR);
break;
}
It always show "You don't have the item" even if the ID exist in the field :S