Warnings
#1

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 !?
Reply
#2

use this example and you will not get problems (sorry for my bad english)

pawn Код:
SetPlayerPos(playerid,Float:x,Float:y,Float:z);
Reply
#3

you have enterd Float , and Float:y only, you have to enter Float:z so this function can work properly
Reply
#4

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
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)