y_timer inclusion broke my script
#1

UPDATE: Please see the bottom of this post.

I have no idea what is going on here:

Quote:

audio.inc(37) : error 001: expected token: "-identifier-", but found "-tagname-"
audio.inc(37) : error 001: expected token: ";", but found "-label-"
audio.inc(38) : error 001: expected token: "-identifier-", but found "-tagname-"
audio.inc(38) : error 001: expected token: ";", but found "-label-"
audio.inc(39) : error 001: expected token: "-identifier-", but found "-tagname-"
audio.inc(39) : error 001: expected token: ";", but found "-label-"

audio_siren.pwn(59) : error 017: undefined symbol "loop"
audio_siren.pwn(59) : warning 215: expression has no effect
audio_siren.pwn(59) : error 029: invalid expression, assumed zero
audio_siren.pwn(59) : error 017: undefined symbol "downmix"
audio_siren.pwn(59) : fatal error 107: too many error messages on one line

Error lines in audio.inc:

pawn Код:
native Audio_Play(playerid, audioid, bool:pause = false, bool:loop = false, bool:downmix = false);
native Audio_PlayStreamed(playerid, const url[], bool:pause = false, bool:loop = false, bool:downmix = false);
native Audio_PlaySequence(playerid, sequenceid, bool:pause = false, bool:loop = false, bool:downmix = false);
Error line in audio_siren.pwn:

pawn Код:
Audio_Play(i, AUDIO_SIREN_DEFAULT, .loop = true, .downmix = false);
I have not edited either of these files in months, and this compiled fine earlier. Wtf is going on? It seems to be a problem with named parameters (e.g. .downmix = false), but this has always worked..

Update
It seems that including y_timers was the problem. How the hell can including y_timers cause this problem? I included it, but didn't use it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)