Ellipsis operator between strings
#6

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
The ellipses operator is used for signalling a difference between integers. You can use it in switch cases, like so:

pawn Код:
case 1...10: SendClientMessage(playerid, -1, "You've got a long way to go yet, Champ!");
That's actually not correct, because you use only 2 dots in a switch statement. The only use for the elipsis operator I can find (other than ******' post) is to initialize variables with an invalid value, for example:

pawn Код:
new Text:gPlayerText[MAX_PLAYERS] = {INVALID_TEXT_DRAW, ...};
Reply


Messages In This Thread
Ellipsis operator between strings - by Scottas - 21.07.2011, 09:47
Re: Ellipsis operator between strings - by Patrik356b - 21.07.2011, 09:52
Re: Ellipsis operator between strings - by Scottas - 21.07.2011, 10:03
Re: Ellipsis operator between strings - by Calgon - 21.07.2011, 10:36
Re: Ellipsis operator between strings - by Scottas - 21.07.2011, 12:01
Re: Ellipsis operator between strings - by Vince - 21.07.2011, 13:08
Re: Ellipsis operator between strings - by Scottas - 21.07.2011, 13:38
Re: Ellipsis operator between strings - by Scottas - 21.07.2011, 14:54
Re: Ellipsis operator between strings - by RSX - 21.07.2011, 15:00
Re: Ellipsis operator between strings - by Patrik356b - 21.07.2011, 16:22

Forum Jump:


Users browsing this thread: 8 Guest(s)