Argument mismatch - 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: Argument mismatch (
/showthread.php?tid=631396)
Argument mismatch -
Face9000 - 28.03.2017
Im getting argument mismatch at those lines:
pawn Код:
USA_CP_SHOP = CreateDynamicCP(-250.0965,2602.7275,62.8582,88.2492,3.0,-1,-1,-1,100.0);
GERMANY_CP_SHOP = CreateDynamicCP(-1478.7811,2640.7166,58.7879,0.4926,3.0,-1,-1,-1,100.0);
RUSSIA_CP_SHOP = CreateDynamicCP(-162.0187,1132.3522,19.7422,269.6302,3.0,-1,-1,-1,100.0);
But the code seems ok. I already defined it.
Re: Argument mismatch -
ISmokezU - 28.03.2017
PHP код:
USA_CP_SHOP = CreateDynamicCP(-250.0965, 2602.7275, 62.8582, 3.0, -1, -1, -1, 100.0);
GERMANY_CP_SHOP = CreateDynamicCP(-1478.7811, 2640.7166, 58.7879, 3.0, -1, -1, -1, 100.0);
RUSSIA_CP_SHOP = CreateDynamicCP(-162.0187, 1132.3522 ,19.7422, 3.0, -1, -1, -1, 100.0);
You were putting the Facing Angle parameter in the CreateDynamicCP(..); function, a checkpoint doesn't need a facing angle.