Ellipsis operator between strings
#4

The ellipses operator is used for signalling a difference between integers. You can use it in switch cases, like so:

pawn Код:
public OnPlayerConnect(playerid) {
    switch(GetPlayerScore(playerid)) {
        case 1..10: SendClientMessage(playerid, -1, "You've got a long way to go yet, Champ!");
    }
   
    return 1;
}
If you want to pause a quotation, perhaps to use a define, you don't require an ellipses, you can just end the quotation and enter the name of the define, then re-continue your quoted text, like so:

pawn Код:
#define PERSON_PHRASE "Champ"
SendClientMessage(playerid, -1, "You've got a long way to go yet, " PERSON_PHRASE "!");
I haven't really looked too far in to pawn-lang.pdf, so my information might not be entirely relevant, but what I've stated generally works - though there may be other uses for the ellipses operator.
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: 4 Guest(s)