Problem With Chat
#7

Quote:
Originally Posted by Rob_Maate
Посмотреть сообщение
pawn Код:
format(string, sizeof(string), "{AD855C}[Team Chat]%s: %s", name, text[1]);
Why are you using 'text[1]'?

just use 'text'. Specifying an index in the array will return a number (the strval) and won't display because you've defined it in your format as a string (%s)
The reason he would use text[1] is to strip text[0] from the output....text[0] represents ! and text[1] represents the rest
Reply


Messages In This Thread
Problem With Chat - by V_LOPE - 15.12.2011, 05:56
Re: Problem With Chat - by Celson - 15.12.2011, 05:59
Re: Problem With Chat - by V_LOPE - 15.12.2011, 06:00
Re: Problem With Chat - by [ABK]Antonio - 15.12.2011, 06:03
Re: Problem With Chat - by V_LOPE - 15.12.2011, 06:08
Re: Problem With Chat - by Rob_Maate - 15.12.2011, 06:29
Re: Problem With Chat - by [ABK]Antonio - 15.12.2011, 06:35
Re: Problem With Chat - by suhrab_mujeeb - 15.12.2011, 06:38
Re: Problem With Chat - by Rob_Maate - 15.12.2011, 06:42
Re: Problem With Chat - by [ABK]Antonio - 15.12.2011, 06:44

Forum Jump:


Users browsing this thread: 2 Guest(s)