30.01.2010, 15:01
I am using this code for telepor player but give me this error
Here is my code
This is the line number 599
SetPlayerPos(playerid,pos_x,pos_y,pos_z);
Код:
C:\Documents and Settings\Administrador\Mis documentos\Evolution Roleplay\gamemodes\evolution.pwn(599) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
new pos_x[128]; new pos_y[128]; new pos_z[128]; SetPlayerSkin(playerid, pinfo[playerid][skin]); format(pos_x, sizeof(pos_x), "%f", pinfo[playerid][px]); format(pos_y, sizeof(pos_y), "%f", pinfo[playerid][py]); format(pos_z, sizeof(pos_z), "%f", pinfo[playerid][pz]); SetPlayerPos(playerid,pos_x,pos_y,pos_z); ResetPlayerMoney(playerid); SafeGivePlayerMoney(playerid, pinfo[playerid][dinero]);
SetPlayerPos(playerid,pos_x,pos_y,pos_z);