27.02.2014, 01:12
La cosa es que necesito que el contenido del inputtext se guarde en PlayerInfo[playerid][pPassword] ya que es para el registro y el logeo, todo completo me da esto:
Код:
new string2[128]; format(string2, sizeof(string2), "%s", inputtext); PlayerInfo[playerid][pPassword] = inputtext; format(Query, sizeof(Query), "INSERT INTO `smf_members` (member_name, passwd, real_name,avatar) VALUES ('%s', '%s','%s','http://zonalatina.com.nu/skins/%d.png')",pName, PlayerInfo[playerid][pPassword],pName,GetPlayerSkin(playerid)); mysql_function_query(Conecction, Query, true, "OnQueryFinish", "ii", 0, playerid); format(Query, sizeof(Query), "INSERT INTO `usuarios` (username, password,posX,posY,posZ,vida,money,skin) VALUES ('%s','%s','1815.36','-1825.75','13.4141','100','50000','250')",pName, PlayerInfo[playerid][pPassword]); mysql_function_query(Conecction, Query, true, "OnQueryFinish", "ii", 0, playerid); format(string, sizeof(string), "Has registrado el personaje %s en nuestro servidor.\n\nAhora inicia sesiуn", pName); ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD,"Iniciar sesiуn",string,"Enviar","Salir");