SA-MP Forums Archive
Timer - Float help - 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: Timer - Float help (/showthread.php?tid=516865)



Timer - Float help - Battlezone - 02.06.2014

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.


Re: Timer - Float help - BroZeus - 02.06.2014

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


Re: Timer - Float help - Battlezone - 02.06.2014

Thanks bro +1