Tag Mismatch.
#1

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.
Reply
#2

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);
Reply
#3

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..
Reply
#4

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

Edit: ^^
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)