SA-MP Forums Archive
Tag mismatch warning - 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: Tag mismatch warning (/showthread.php?tid=565071)



Tag mismatch warning - Alvin007 - 24.02.2015

Somewhere in the script i have this, and it keeps saying Tag Mismatch even tho i changed rand to an integer afterward using the floatround function.
i know this method is wrong, any advice?
PHP код:
new entier,string1[80],string2[80];
        new 
Float:rand;
        
rand=random(3)+2.3;
        
floatround(randfloatround_round);
        
entier=rand//1st warning is here
        
SendClientMessage(iOOC,"====== Bank of LS ======"); 
thanks.


Re: Tag mismatch warning - Vince - 24.02.2015

The parameters for floatround are not passed by reference. That means the function returns the new value and doesn't alter the original values.
pawn Код:
entire = floatround(...



Re : Tag mismatch warning - Alvin007 - 24.02.2015

Thanks alot Vince :*