tag mismatch (#1) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: tag mismatch (#1) (
/showthread.php?tid=268992)
tag mismatch (#1) -
LZLo - 14.07.2011
PHP код:
#define AFK_MINUTES 2.3
new AFKTimer[MAX_PLAYERS];
AFKTimer[playerid] = SetTimerEx("Player_Detect_Afk",AFK_MINUTES*60000,0, "d", playerid);
warning: tag mismatch
how can i fix it?
Re: tag mismatch (#1) -
Farsek - 14.07.2011
'interval' is INT no FLOAT, so:
#define AFK_MINUTES 2
or
#define AFK_MINUTES 3
Re: tag mismatch (#1) -
RyDeR` - 14.07.2011
Use:
"_: (AFK_MINUTES * 60000)"
EDIT: "floatround" is also a possibility.
Re: tag mismatch (#1) -
LZLo - 14.07.2011
Quote:
Originally Posted by Farsek
'interval' is INT no FLOAT, so:
#define AFK_MINUTES 2
or
#define AFK_MINUTES 3
|
thank you