Posts: 6,129
Threads: 36
Joined: Jan 2009
You should probably revise the pawn-lang.pdf before writing a tutorial on arithmetic operators/symbols.
Quote:
Originally Posted by willsuckformoney
Nice but isn't there a way to do like
[/pawn]
#define * x
[/pawn]
So instead of * you can put x or what ever i want?
|
You realize that whenever you use the 'x' letter, it'll be replaced?
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Kyosaur
Registration has been disabled due to the posting of shock/gore porn D:
EDIT: Colgon beat me on the define thing :P.
|
What's with your obsession with cheesy signatures? Lol.
Quote:
Originally Posted by Kyosaur
What a coincidence, im in the middle of writing a binary tutorial which explains a lot of you "dont know" operators. Its not quiet finished, but you should probably check it out:
https://sampwiki.blast.hk/wiki/Binary
|
Epoch!
Quote:
Originally Posted by The Toni
Damn it i knew i should have registered WAY earlier.
But good job on your binarys...i'm still confused, but getting there.
|
Registration will probably get opened again in the future, or you could consider asking a SA-MP moderator to register you an account (if they allow that).
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
It'd be around time a decent tutorial would've been posted here again. Good job Toni :P
Posts: 15,941
Threads: 0
Joined: Jun 2008
Quote:
Originally Posted by The Toni
But I'd like to see what Y_Less has to say to this topic...he'll probably have those really long but helpful information paragraphs.
|
Of course!
Firstly your division symbol is backwards. You may also want to explain the difference between integer and float division: "15 / 2 = 7" in ints and "7.5" in floats.
List of symbols you missed (and you REALLY need to read pawn-lang to see what symbols do before posting a tutorial stating that you don't know what they do, there's not really much point in that is there)?
>>> (not >>)
^
%
- (unary)
!
*=
+=
-=
<<=
>>=
>>>=
%=
/=
|=
&=
^=
I wrote an extensive review of the symbols a long time ago, but it's long gone, shame, I know Simon loved it.
That also really didn't explain binary, and you didn't mention hex at all.
What I do when writing a tutorial is write it in a file on my PC (I have a few unpublished topics floating about). I can then take time over them and research bits I don't know, instead of producing something where I don't know half the information. Either restrict the scope of your topic to what you know or look up what you don't. If someone who doesn't know what "&" does, reading this topic is not going to help in the slightest.
Posts: 1,464
Threads: 90
Joined: Aug 2009
Reputation:
0
Thanks for being honest Y_Less. I'll try to read a little more.
After that, I'll edit the tutorial.
Posts: 344
Threads: 12
Joined: Sep 2010
Reputation:
0
Sorry for refreshing this old theme.
I have one question.
What represent "+="
Thanks!
Posts: 824
Threads: 53
Joined: Jul 2010
Reputation:
0
I don't think that there is kind of symbol.
Try using =>, <=, >, <.
Posts: 1,297
Threads: 17
Joined: Apr 2011
Good job, this is useful and has many information
, thanks you