tag mismatch (#1)
#1

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

'interval' is INT no FLOAT, so:
#define AFK_MINUTES 2
or
#define AFK_MINUTES 3
Reply
#3

Use:
"_: (AFK_MINUTES * 60000)"

EDIT: "floatround" is also a possibility.
Reply
#4

Quote:
Originally Posted by Farsek
Посмотреть сообщение
'interval' is INT no FLOAT, so:
#define AFK_MINUTES 2
or
#define AFK_MINUTES 3
thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)