Convert C Header-File into PAWN-Include - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Convert C Header-File into PAWN-Include (
/showthread.php?tid=626252)
Convert C Header-File into PAWN-Include -
faxxe - 12.01.2017
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
Re: Convert C Header-File into PAWN-Include -
SoLetsGO - 12.01.2017
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?