Convert C Header-File into PAWN-Include
#1

Ahoy mates
i want to get some functions to use complex numbers and math operations but didnt find any include for PAWN yet
So i wanted to write this includes in PAWN but wasnt successful yet

Only thing i was able to replace was

extern double cos(double);
extern double sin(double);

by

#define sin(%0) floatsin(%0)
#define cos(%0) floatcos(%0)

But for some reason structs doesnt work in PAWN

1st header

http://pastebin.com/4JuvGK6m

2nd header

http://www.nongnu.org/avr-libc/user-...8h_source.html
Reply
#2

You should think about making a plugin to insert your native functions like sin/cos.

Btw. Why do you need complex numbers in SA:MP?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)