Posts: 586
Threads: 16
Joined: Mar 2008
Reputation:
0
SA-MP's version of pawno is alterd, so it may not be supported.
Same goes for strcopy, void, register - they all seem to have been removed/disabled
Posts: 6,129
Threads: 36
Joined: Jan 2009
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:
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.
Posts: 333
Threads: 18
Joined: Jul 2010
Reputation:
0
I am using line breaks when string line becomes to long, so I don't need to scroll to right