An error with a macro
#1

pawn Код:
#define PlayAudioFromURL(%0, %1) StopAudioStreamForPlayer(%0),PlayAudioStreamForPlayer(%0, %1)
This macro sends me this errors:

Код:
warning 236: unknown parameter in substitution (incorrect #define pattern)
warning 236: unknown parameter in substitution (incorrect #define pattern)
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Why?



Thanks.
Reply
#2

pawn Код:
#define PlayAudioFromURL(%0, %1) StopAudioStreamForPlayer(%0),PlayAudioStreamForPlayer(%0, %1)
Should be
pawn Код:
#define PlayAudioFromURL(%0,%1) StopAudioStreamForPlayer(%0),PlayAudioStreamForPlayer(%0, %1)
Remember that you cant have spaces in what you're defining because it will think you're defining
pawn Код:
#define PlayAudioFromURL(%0,
to be
pawn Код:
%1) StopAudioStreamForPlayer(%0),PlayAudioStreamForPlayer(%0, %1)
Reply
#3

Oh, thank you so much!!!

Can you see if you can response my other doubts posted?

Thank you Killer, you helped me a lot.

Best regards.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)