21.07.2011, 10:36
(
Последний раз редактировалось Calgon; 21.07.2011 в 13:10.
Причина: Typo, thanks for noticing Vince
)
The ellipses operator is used for signalling a difference between integers. You can use it in switch cases, like so:
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:
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.
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;
}
pawn Код:
#define PERSON_PHRASE "Champ"
SendClientMessage(playerid, -1, "You've got a long way to go yet, " PERSON_PHRASE "!");