SA-MP Forums Archive
warning 213: tag mismatch (+REP) - 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: warning 213: tag mismatch (+REP) (/showthread.php?tid=604673)



warning 213: tag mismatch (+REP) - Lirbo - 08.04.2016

DB[i][Money]=DB[i][Money]+EventJackpot*0.20;


Re: warning 213: tag mismatch (+REP) - AndySedeyn - 08.04.2016

'Money' is not declared as a float and since you multiply it with a float value (0.20), it will result in a float value. Round up the float to an integer: https://sampwiki.blast.hk/wiki/Floatround


Re: warning 213: tag mismatch (+REP) - Misiur - 08.04.2016

Like this
Quote:

DB[i][Money] += floatround(EventJackpot * 0.20);




Re: warning 213: tag mismatch (+REP) - Lirbo - 08.04.2016

Thanks guys