SA-MP Forums Archive
Fix this error - 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: Fix this error (/showthread.php?tid=187519)



Fix this error - X35B - 03.11.2010

How can i fix up these coordinates?

AddPlayerClass(35,2310.3688748994423,579.796522666 5763,0,0,0,0,0,0); //LV Port
AddPlayerClass(32,2702.8146976207395,-2575.2926862981103,0,0,0,0,0); //LS Port
AddPlayerClass(125,-1304.6320729957217,487.8464822828481,0,0,0,0,0,0); //SF Port


Re: Fix this error - Grim_ - 03.11.2010

Please explain what you mean by "fix them up". Currently your syntax for the function is not correct, please check this: https://sampwiki.blast.hk/wiki/AddPlayerClass

You have incorrectly entered the coordinates it seems. Make sure to follow the syntax found on the above site.

Irrelevant: This forum requires that you wait 120 seconds between posts. Please try again in 35 seconds.


Re: Fix this error - X35B - 03.11.2010

I mean what is wrong with the coordinates in there format.


Re: Fix this error - Grim_ - 03.11.2010

In your lines, you only have 2 coordinates (separated with commas ( , )) when the function needs 4.

You must have incorrectly pasted the lines, forgetting to add the commas.

Irrelevant: This forum requires that you wait 120 seconds between posts. Please try again in 13 seconds.


Re: Fix this error - X35B - 03.11.2010

Can you post what it should look like because i can't figure out where the 4 commas go.


Re: Fix this error - Grim_ - 03.11.2010

I cannot tell since I have not seen the original X Y Z and A coordinates. This could be a possibility:
pawn Код:
AddPlayerClass(35,2310.3688,7489.94423,579.7965,22666.5763,0,0,0,0,0,0); //LV Port
AddPlayerClass(32,2702.81469,7620.7395,-2575.292,6862.981103,0,0,0,0,0); //LS Port
AddPlayerClass(125,-1304.6320,7299.57217,487.84648,2282.8481,0,0,0,0,0,0); //SF Port
Once again, that could be completely wrong.