06.10.2013, 10:53
Hello i made my function:
And when I use it:
I get this error:
I think that's because argument 2 "-183.7686" is < 0. But I need that be < 0.
What I can do for fix this error?
P.S. Sorry for my bad english
Код:
stock teleport(playerid, const X[],const Y[],const Z[]) { if(IsPlayerInAnyVehicle(playerid)) { new vehid = GetPlayerVehicleID(playerid); SetPlayerPos(playerid,floatstr(X),floatstr(Y),floatstr(Z)); SetVehiclePos(vehid,floatstr(X),floatstr(Y),floatstr(Z)); PutPlayerInVehicle(playerid,vehid,0); } else { SetPlayerPos(playerid,floatstr(X),floatstr(Y),floatstr(Z)); } return 1; }
Код:
teleport(playerid, -183.7686, 1268.6160, 23.0725);
Код:
error 035: argument type mismatch (argument 2)
What I can do for fix this error?
P.S. Sorry for my bad english