format(string2, sizeof(string2), "%s", inputtext); PlayerInfo[playerid][pPassword] = inputtext;
new string2[128]; format(string2, sizeof(string2), "%s", inputtext); PlayerInfo[playerid][pPassword] = inputtext;
format(string2, sizeof(string2), "%s", inputtext); PlayerInfo[playerid][pPassword] = strval(string2);
//variable para almacenar la contraseсa
new variable[MAX_PLAYERS][144];
//guardar el texto en la variable
format(variable[playerid], 144, "%s",inputtext;
//ver que contraseсa que tiene guardara la variable
new data[144];
format(data,sizeof(data),"la contraseсa es: %s",Gvariable[playerid]);
SendClientMessage(playerid,-1,data);
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");
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
|
//variable para almacenar la contraseсa
new variable[MAX_PLAYERS][144];
//guardar el texto en la variable
format(variable[playerid], 144, "%s",inputtext;
//ver que contraseсa que tiene guardara la variable
new data[144];
format(data,sizeof(data),"la contraseсa es: %s",Gvariable[playerid]);
SendClientMessage(playerid,-1,data);
//variable para almacenar la contraseсa
new variable[MAX_PLAYERS];
//guardar el texto en la variable
variable[playerid] = strval(inputtext);
//ver que contraseсa que tiene guardara la variable
new data[144];
format(data,sizeof(data),"la contraseсa es: %d",Gvariable[playerid]);
SendClientMessage(playerid,-1,data);