@ Michael_Schwarz:

When the user doesn't type anything I don't want it to send and tried this. It worked, but the first time player can hit enter and pass. The second time it's prevented. Do you know how to always prevent sending in case nothing was typed?

Code:
if(str_len(input_str)>=1 && (result==13)) // Wenn die eingabe mit enter beendet wurde
{
NachrichtAnServerSenden(); // Bericht verzenden
}
}



Dusty


smile