Player name from inputtext
#4

Quote:
Originally Posted by Daslee
Посмотреть сообщение
Working! Thanks
Its generally never a good idea to assign strings using the assignment operator. In most languages it simply isnt allowed as it can lead to buffer overflows. The ONLY time you should use the assignment opertator is if you're absolutely sure the strings are the same size.

The reason this didnt work is because inputtext's size isnt known during compile time, therefor its an invalid assignment (someone could type something much longer than 24 characters).
Reply


Messages In This Thread
Player name from inputtext - by Daslee - 16.07.2011, 21:10
Re: Player name from inputtext - by blackwave - 16.07.2011, 21:15
Re: Player name from inputtext - by Daslee - 16.07.2011, 21:17
Re: Player name from inputtext - by Kyosaur - 16.07.2011, 21:27

Forum Jump:


Users browsing this thread: 5 Guest(s)