їPuedo hacer esto en SQLite?
#2

Creo que no se puede, pero pon las variables en otra lнnea, asi como el mнo, aquн un ejemplo:

Quote:

new Query[2000];
new fecha[15], month,day,year;
getdate(year,month,day);
format(fecha,sizeof(fecha),"%i/%i/%i",day,month,year);
format(Query,sizeof(Query),
"INSERT INTO `USERS` (`Nick`,`Pass`,`Reg`,`Eml`,`Ks`,`Dhs`,`Oro`,`Cash` ,`Adm`,`Vip`,`Scw`,`SDl`,`Niv`,`Exp`,`Sex`,`Sk`,`U Sk`,`Obj`,`Ob1`,`Ob2`,`Time`,`Adv`,`ASpw`,`LoD`,`L oP`,`Ds`,`TDs`,`Kx`,`TKx`,`Arsp`,`TAp`,`Clan`,`Ecl `,`pLr`,`pSr`,`pRa`,`Blq`,`NDl`,`Text`,`Casa`,`Mis `,`CMis`,`Col`,`Spw`,`Cct`,`Ccn`) VALUES('%s','%s','%s','%s','0','0','%d','%d','0',' 0','0','0','1','%f','0','%d','0','0','0','0','0',' 0','0','0','0','0','0','0','0','0','0','%s','0','0 ','0','0','1','0','1','0','1','0','0','0','%s','0' )",
DB_Escape(pName(playerid)),
DB_Escape(JugadorInfo[playerid][pPass]),
fecha,
DB_Escape(JugadorInfo[playerid][pMail]),
100000,
300,
0.000000,
299,
"No",
"{FFFFFF}");
db_query(ExLDB, Query);
SendClientMessage(playerid,COLOR_AZUL,"«| Cuenta |» Sexo Masculino Definido.");
JugadorInfo[playerid][pSexo] = 0;
JugadorInfo[playerid][pOro] = 100000;
JugadorInfo[playerid][pCash] = 300;
new MiFecha[16];
format(MiFecha, 16, fecha);
JugadorInfo[playerid][pRegDat] = MiFecha;
ShowPlayerDialog(playerid, SinUso, DIALOG_STYLE_MSGBOX, ""COL_VERDE"«| Registro Completado |»", ""COL_NARANJA"Te has Registrado Y Logueado Correctamente\n\n"COL_VERDE"En el caso que tengas dudas usa el comando /ayuda \no contacta a un Administrador (/admins)", "Aceptar", "");
JugadorInfo[playerid][pLogueado] = 1;
StartIntro(playerid);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);

Reply


Messages In This Thread
їPuedo hacer esto en SQLite? - by Ghost112397 - 01.09.2015, 23:44
Respuesta: їPuedo hacer esto en SQLite? - by dannypanda05 - 02.09.2015, 01:45
Respuesta: їPuedo hacer esto en SQLite? - by Ghost112397 - 02.09.2015, 02:48
Re: їPuedo hacer esto en SQLite? - by Daniel-92 - 02.09.2015, 04:14
Re: їPuedo hacer esto en SQLite? - by OllieSimons - 02.09.2015, 07:46
Re: їPuedo hacer esto en SQLite? - by GaBO! - 02.09.2015, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)