SA-MP Forums Archive
Tag Mismatch. - 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: Tag Mismatch. (/showthread.php?tid=405127)



Tag Mismatch. - AstonDA-G - 05.01.2013

Hi all,I'm getting a tag mismatch, but i don't see why..

Код:
C:\Users\Daniel\Desktop\SA-MP\gamemodes\gmode01.pwn(289) : warning 213: tag mismatch
and line 289:
pawn Код:
SetTimer("SFGarageTime", 7.00, false);
I don't see why this is a mismatch, I have the timer name, then the time, and then the repeat.
What have I done?
Thanks,
-Aston.


Re: Tag Mismatch. - arakuta - 05.01.2013

The time must be in miliseconds or you can do "math" !

Try (Miliseconds)

pawn Код:
SetTimer("SFGarageTime",7000,false);
Try (Seconds)

pawn Код:
SetTimer("SFGarageTime",7 * 1000,false);



Re: Tag Mismatch. - [HK]Ryder[AN] - 05.01.2013

1.the time is in milliseconds
2.The time is not a float..you cannot add decimals..you only need to do 7(if u want it for 7 milliseconds)

EDIT: Guy above me was faster..


Re: Tag Mismatch. - u3ber - 05.01.2013

Код:
SetTimer("SFGarageTime", 7.00, false);
7.00 = floating-point value. use an integer value such as 7000.

Edit: ^^


Re: Tag Mismatch. - AstonDA-G - 05.01.2013

ohhh fail, sorry had a mental block *facepalm*
Thanks for the help guys