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]);
new Float:pos_x, Float: pos_y, Float:pos_z;
pos_x=pinfo[playerid][px];
pos_y=pinfo[playerid][py];
pos_z=pinfo[playerid][pz];
new qr[128]; new Float:pos_x, Float: pos_y, Float:pos_z; pos_x=pinfo[playerid][px]; pos_y=pinfo[playerid][py]; pos_z=pinfo[playerid][pz]; format(qr, sizeof(qr), "UPDATE `evo`.`jugadores` SET `Spawned` = '1' WHERE `jugadores`.`nombre` ='%s' LIMIT 1", pname); SetPlayerSkin(playerid, pinfo[playerid][skin]); SetPlayerPos(playerid, pos_x, pos_y, pos_z); ResetPlayerMoney(playerid); SafeGivePlayerMoney(playerid, pinfo[playerid][dinero]);
Originally Posted by Seif_
That's because the location is too far.
|
public GuardarPos(playerid) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); new qry[256]; new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); printf("%i cambio su posicion: x: %f y: %f z: %f",playerid, x, y, z); format(qry, sizeof(qry), "UPDATE `evo`.`jugadores` SET `Px` = '%f', `Py` = '%f', `Pz` = '%f' WHERE `jugadores`.`Nombre` ='%s' LIMIT 1", x, y, z, pname); mysql_query(qry); }
Originally Posted by ray187
Maybe you don`t assign the coordinates as you should to pinfo[playerid][p..]
|
Originally Posted by MadeMan
Tried showing the coords just before spawning?
|