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



help! - sams90 - 20.06.2017

warning 213: tag mismatch


PHP код:
price = (Prop[i][PropPrice] / 1.25); 
the problem is 1.25


Re: help! - NewFreeroamStunt - 20.06.2017

Код:
new price = (Prop[i][PropPrice] / 1.25);



Re: help! - NaS - 20.06.2017

Quote:
Originally Posted by sams90
Посмотреть сообщение
warning 213: tag mismatch


PHP код:
price = (Prop[i][PropPrice] / 1.25); 
the problem is 1.25
price must be a Float, because 1.25 is one as well. If you don't want price to be a Float, use floatround() to round it to the closest integer value:

PHP код:
price floatround(Prop[i][PropPrice] / 1.25); 



Re: help! - sams90 - 21.06.2017

Quote:
Originally Posted by NaS
Посмотреть сообщение
price must be a Float, because 1.25 is one as well. If you don't want price to be a Float, use floatround() to round it to the closest integer value:

PHP код:
price floatround(Prop[i][PropPrice] / 1.25); 
Ooh yeh fixed thank you.