Timer - Float help
#1

Im trying to set the timer interval according to players number factor so here im dividing the default interval b the players number.

Example :

pawn Код:
ZCount[TEST] = 20 ;
Attackers[TEST]= 4 ;
Timer[TEST] = SetTimer("ZONECapturedTest", floatdiv(ZCount[TEST], Attackers[TEST]) , 0);
I know there is something wrong, i get this C:\Users\SEIF\Desktop\samp03z_svr_R1_win32\gamemod es\WarZ.pwn(600) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#2

SetTimer("ZONECapturedTest", floatround(floatdiv(ZCount[TEST], Attackers[TEST]), floatround_round) , 0);
use this^
Reply
#3

Thanks bro +1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)