Marco not working?
#1

Oh it was just because I did not add the 'spaces' it had to be neatly written
Function(...); // this is good
Function (...); // no spaces or 'tab' will cause error

But I can't use it...I don't know why, anyone help me please!

new i; // or Float:i
i = mathit(200,300);

Creates error, but not
mathit(200,300);

Why is this!?
Reply
#2

you gave space between "math" and "it"
Remove the space
Reply
#3

Try with

i = mathit(1, 3);

I'm noob in scripting tho, just trying to help
Reply
#4

Quote:
Originally Posted by Fred1993
Посмотреть сообщение
you gave space between "math" and "it"
Remove the space
Yes thanks for trying, but I'm using my phone but the code on my computer is correct no spaces and I see nothing wrong.
I just made an error , due to the fact that autocorrect sucks

UPDATE:
I only have one warning now but, the line is always the next line after I use
mathit()
Reply
#5

Can I know what's wrong? I mean how is it not working?
Reply
#6

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Can I know what's wrong? I mean how is it not working?
UPDATE:
I only have one warning now but, the line is always the next line after I use
mathit()
Reply
#7

Quote:

#define mathit(%0,%1) \
((%0)+(%1));

New Float:i;
i = mathit(1,3);

Try this
Reply
#8

Can you tell me what that warning is?
It works normally for me.
Reply
#9

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Can you tell me what that warning is?
It works normally for me.
Oh it was just because I did not add the 'spaces' it had to be neatly written
Function(...); // this is good
Function (...); // no spaces or 'tab' will cause error

But I can't use it...I don't know why, anyone help me please!

new i; // or Float:i
i = mathit(200,300);

Creates error, but not
mathit(200,300);

Why is this!?
Reply
#10

https://sampforum.blast.hk/showthread.php?tid=166680
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)