Faculty in PAWN
#1

Is it somehow possible to use the faculty in PAWN? I personally was thinking of something like this...

pawn Код:
new total = !5;
... but I am quite sure it will error.

If it's not possible, I'll soon release an easy stock for it.
Reply
#2

Yes, it's possible.
Reply
#3

Quote:
Originally Posted by GiamPy.
Посмотреть сообщение
Yes, it's possible.
Yes, it's possible with stock as far as I know (quite easy), but is there a native way?
Reply
#4

What exactly would you like to do?
I just tried and it doesn't give me any error, anyway.
Reply
#5

pawn Код:
new integ = !5;
printf("integ = %d",integ);
"integ = 0"
Reply
#6

If you explain me what exactly would you like to do, I could help you.
Reply
#7

Quote:
Originally Posted by GiamPy.
Посмотреть сообщение
If you explain me what exactly would you like to do, I could help you.
Do you actually have any clue what the faculty is?
Reply
#8

It's a math function.
I don't think SA:MP has a native for it.
Reply
#9

Excuse me, translation fail. I was talking about the factorial.

factorial 5 = 5*4*3*2*1

http://forum.sa-mp.com/showpost.php?...&postcount=911
Reply
#10

As far as I know, SA:MP hasn't got a native function for it.
Using a stock would be the same thing, just use it whenever you need to and you're fine, wouldn't you?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)