SA-MP Forums Archive
Need 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help (/showthread.php?tid=110053)



Need help - lakierka - 24.11.2009

Hello all. I'm doing drunk system. And I'm trying to do that I could check player drunk level. But I type this: new something = 0.40+random(1.40); pawno shows me that: warning 213: tag mismatch. But when I type this: new something = 040+random(140); then all good. Maybe someone know how to fix it or I can't use dot or comma?


Re: Need help - Abernethy - 24.11.2009

That would be because drunk levels aren't a float..


Re: Need help - lakierka - 24.11.2009

Now, when I type like that: new Floatomething = 0.40+random(1.40); it's the same, but when type like that: new Floatomething = 0.40+random(140); all good. Maybe you know how to fix it? I'd be thankful.


Re: Need help - mamorunl - 24.11.2009

As he said, you cannot enter a float there. That would be the reason.