SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/02/2015, 10:56 PM   #1
Alvin007
Huge Clucker
 
Alvin007's Avatar
 
Join Date: Mar 2011
Location: Tunisia
Posts: 245
Reputation: 9
Default 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.
__________________
Alvin007 is offline   Reply With Quote
Old 24/02/2015, 10:59 PM   #2
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,083
Reputation: 2655
Default 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(...
__________________
Vince is offline   Reply With Quote
Old 24/02/2015, 11:07 PM   #3
Alvin007
Huge Clucker
 
Alvin007's Avatar
 
Join Date: Mar 2011
Location: Tunisia
Posts: 245
Reputation: 9
Default Re : Tag mismatch warning

Thanks alot Vince :*
__________________
Alvin007 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
warning 213: tag mismatch sn0p Scripting Help 0 11/01/2015 03:52 PM
warning tag mismatch Cerealguy Scripting Help 4 09/01/2015 11:52 PM
(383 -- 395) : warning 213: tag mismatch TheNerka Scripting Help 2 22/07/2014 10:10 AM
Warning 213: Tag Mismatch Syntax Scripting Help 2 14/06/2012 09:21 AM


All times are GMT. The time now is 07:05 PM.


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