SA-MP Forums Archive
include not working? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: include not working? (/showthread.php?tid=241977)



include not working? - sciman001 - 19.03.2011

I made this script:

pawn Код:
#include <a_samp>
#include <math>

main()
{
    print("\n----------------------------------");
    print(" testcrap");
    print("----------------------------------\n");
}

public OnFilterScriptInit()
{
    new num1 = subtract(50, 45);
    new num2 = add(25, 22);
    new num3 = multiply(22, 85);
    new num4 = divide(200, 5);
    printf("%i", num1);
    printf("%i", num2);
    printf("%i", num3);
    printf("%i", num4);
}
and this include:
pawn Код:
#if defined _math
  #endinput
#endif
#define _math
#pragma library math

subtract(bnum, snum)
{
    new num1 = bnum - snum;
}

add(bnum, snum)
{
    new num2 = bnum + snum;
}

multiply(bnum, snum)
{
    new num3 = bnum * snum;
}

divide(bnum, snum)
{
    new num4 = bnum / snum;
}

native subtract(bnum, snum);
native add(bnum, snum);
native multiply(bnum, snum);
native divide(bnum, snum);
What is wrong? it wont output anything.


Re: include not working? - Ironboy - 19.03.2011

when you compile it, it is showing any error?


Re: include not working? - sciman001 - 19.03.2011

nope.


Re: include not working? - sciman001 - 19.03.2011