SA-MP Forums Archive
What's wrong with this cps? - 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: What's wrong with this cps? (/showthread.php?tid=310903)



What's wrong with this cps? - Face9000 - 14.01.2012

pawn Код:
CPs[1] = CreateDynamicCP(70.6080,1873.4103,17.6406,272.9167,0,0,0,0,0,0,3.0,-1,-1,-1,100.0); //Shop cp
    CPs[2] = CreateDynamicCP(93.0436,1927.1671,18.0430,267.9595,0,0,0,0,0,0,100.0); // Help Cp
    CPs[3] = CreateDynamicCP(131.0330,1928.2758,19.2049,0.3937,0,0,0,0,0,0,100.0); // Rules Cp
Are written wrong?They are checkpoints.

warning 202: number of arguments does not match definition


Re: What's wrong with this cps? - wildcookie007 - 14.01.2012

the function has too many parameters and you also included rotation in it which is not even needed and not in the function
CreateDynamicCP(Float: x, Float: y, Float: z, Float: size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);


Re: What's wrong with this cps? - Face9000 - 14.01.2012

Umh ye i know that,but how i can fix?


Re: What's wrong with this cps? - wildcookie007 - 14.01.2012

I just told you the solution


Re: What's wrong with this cps? - Face9000 - 14.01.2012

Quote:
Originally Posted by wildcookie007
Посмотреть сообщение
I just told you the solution
Already tried that,but i'm getting same warnings.


Re: What's wrong with this cps? - wildcookie007 - 14.01.2012

facepalm

pawn Код:
CreateDynamicCP(70.6080,1873.4103,17.6406,3,0,0,-1,100); //Shop cp
same with others.


Re: What's wrong with this cps? - Face9000 - 14.01.2012

Thank you.