SA-MP Forums Archive
Type Mistmatch - 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: Type Mistmatch (/showthread.php?tid=590367)



Type Mistmatch - VirtasVarsketis - 28.09.2015

Uh-oh, I don't know what's the problem with this one.
new Float:Xtemp =floatmul (floatdiv(Drift_VAR[playerid]));
Error message:
(454) : error 035: argument type mismatch (argument 1)
Any ideas?


Re: Type Mistmatch - saffierr - 28.09.2015

Try

PHP код:
Float:Xtemp floatmul (floatdiv(Drift_VAR[playerid])); 



Re: Type Mistmatch - Vince - 28.09.2015

Mathematical operations always need at least two operands. I hope that much is clear? Multiply by what? Divide by what? I suggest you read what those functions do, first.