Question about symbols
#4

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
_: - clears the tag from variable ( not sure ) - example Float:X becomes normal X.
a>b - logical operator. This returns true(1) if variable a is higher then variable b. ( false -0 if not)
>> >>> - bit operators ( https://sampforum.blast.hk/showthread.php?tid=177523)
for |= and ~ I never saw them

barackets are used to tell program to first do operations inside then use the result- same as you do in maths.

(1+1)*3 is not same as 1+1*3
Thank you very much.
Quote:
Originally Posted by Emmet_
Посмотреть сообщение
_: defines a custom tag without giving any error, example:

pawn Код:
new Text3D:asd;
printf("%d", asd); // Will give errors.
printf("%d", _:asd); // Will not give errors.
You can always use functions inside brackets, example:

pawn Код:
GivePlayerMoney(playerid, (500));
So what this symbol useful for ? (if kalcor added this feature,there should be a good reason for doing this)
about the barackets - yes,but the barackets were used like this:
pawn Код:
stock ThisIsMyStock()
{
    SendClientMessage(playerid,0xC0C0C0,"This is a message");
    (_: array[3] |= ((array1 & array2) << array3));
}
Reply


Messages In This Thread
Question about symbols - by Gamer` - 26.09.2012, 20:52
Re: Question about symbols - by Roko_foko - 26.09.2012, 20:57
Re: Question about symbols - by Emmet_ - 26.09.2012, 20:59
Re: Question about symbols - by Gamer` - 26.09.2012, 21:30
Re: Question about symbols - by OnlyOne - 26.09.2012, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)