SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Tag mismatch warning (https://forum.sa-mp.com/showthread.php?t=565071)

Alvin007 24/02/2015 10:56 PM

Tag mismatch warning
 
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 Code:

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.

Vince 24/02/2015 10:59 PM

Re: Tag mismatch warning
 
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 Code:
entire = floatround(...

Alvin007 24/02/2015 11:07 PM

Re : Tag mismatch warning
 
Thanks alot Vince :*


All times are GMT. The time now is 12:10 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.