Warnings - 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: Warnings (
/showthread.php?tid=446033)
Warnings -
DAVIDXP - 24.06.2013
Hi SA-MP.com, I'm working at my GM and I have some warnings here:
pawn Код:
SetPlayerPos( playerid, -11.7745,3338.6978 );
And Warning:
pawn Код:
warning 202: number of arguments does not match definition
Can you help me please !?
Re: Warnings -
CountyRP - 24.06.2013
use this example and you will not get problems (sorry for my bad english)
pawn Код:
SetPlayerPos(playerid,Float:x,Float:y,Float:z);
Re: Warnings -
xMCx - 24.06.2013
you have enterd Float
, and Float:y only, you have to enter Float:z so this function can work properly
Re: Warnings -
Niko_boy - 24.06.2013
function syntax:
pawn Код:
SetPlayerPos( playerid, Float:x, Float:y, Float:z );
but here:
pawn Код:
------------- (correct, x, y , z(this u forgot) )
SetPlayerPos( playerid, -11.7745,3338.6978 );
u miised that last argument i.e. Z pos
so this should be like
pawn Код:
SetPlayerPos( playerid, -11.7745,3338.6978, 1.0 );
u have missed 1.0 ( just an example coordinate ) which is z coordinate of position to be set
Re: Warnings -
JimmyCh - 24.06.2013
Do /save in game to the position you want, and use SetPlayerPos(playerid, -11.7745,3338.6978, "AND HERE THE Z"); and you won't get any warning.