question about stings(cells)
#1

hey there,
okay so i've got couple of commands on server that has low string cells [new string[30];] for example now when player uses this command that has string 30 and if he does write for example "kjkljklhjlhklhksahtg"or any other thing but like long characters it will crash the server but if i raise string cells it wont crash , can you help me out ?
Reply
#2

Check the length of the user input
PHP код:
if(strlen(blah) > 30) return 1
Reply
#3

Chat messages are usually to be set at 128 cells.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)