mysql help [+3 rep]
#1

Hello,
I have a problem the information is not back, sorry I'm not English so I have a bad English.
thank you

Код:
[12:24:48] CMySQLHandler::Query(UPDATE lsr_comptes SET Email='DarkZeroX800@laposte.net',Niveau=1,Respect=0,RespectP=7,Argent=0,Banque=0,NombreConnexion=1,AdminLevel=0,VipLevel=0,Faim=0,Soif=0,Urine=0,Sale=0,Skin=23,Numero=0,Credits=0,Minutes=0,Heures=0,Age=19,JailTemps=0,JailType=0,JailRaison='',JailPar='',Inscrit=0,Combat=0,Dance=0,Origine=3,Sexe=1,Permis=0,PermisPoint=0,Carte=0,LocationVehicule=0,CrashX=0.000000,CrashY=0.000000,CrashZ=0.000000,CrashInterieur=0,CrashVirtualWorld=0,Faction=0,Rang=0,RangJob=0,PayeJob=0,Ban=0,BanRaison='',BanPar='' WHERE Nom='') - Successfully executed.
Код:
public Compte_Sauvegarde(playerid)
{
    if(Login[playerid] == 0)
    {
	   return 1;
    }
	GetPlayerName(playerid,Joueur_Nom,25);

	format(SQL_STRING, sizeof(SQL_STRING), "UPDATE lsr_comptes SET Email='%s',Niveau=%d,Respect=%d,RespectP=%d,Argent=%d,Banque=%d,NombreConnexion=%d,AdminLevel=%d,VipLevel=%d,",
	Joueur_Info[playerid][Joueur_Email],Joueur_Info[playerid][Joueur_Niveau],Joueur_Info[playerid][Joueur_Respect],Joueur_Info[playerid][Joueur_RespectP],Joueur_Info[playerid][Joueur_Argent],
	Joueur_Info[playerid][Joueur_Banque],Joueur_Info[playerid][Joueur_NombreConnexion],Joueur_Info[playerid][Joueur_AdminLevel],Joueur_Info[playerid][Joueur_VipLevel]);

	format(SQL_STRING, sizeof(SQL_STRING), "%sFaim=%d,Soif=%d,Urine=%d,Sale=%d,Skin=%d,Numero=%d,Credits=%d,Minutes=%d,Heures=%d,Age=%d,JailTemps=%d,JailType=%d,JailRaison='%s',JailPar='%s',",
	SQL_STRING,Joueur_Info[playerid][Joueur_Faim],Joueur_Info[playerid][Joueur_Soif],Joueur_Info[playerid][Joueur_Urine],Joueur_Info[playerid][Joueur_Sale],Joueur_Info[playerid][Joueur_Skin],
	Joueur_Info[playerid][Joueur_Numero],Joueur_Info[playerid][Joueur_Credits],Joueur_Info[playerid][Joueur_Minutes],Joueur_Info[playerid][Joueur_Heures],Joueur_Info[playerid][Joueur_Age],
	Joueur_Info[playerid][Joueur_JailTemps],Joueur_Info[playerid][Joueur_JailType],Joueur_Info[playerid][Joueur_JailRaison],Joueur_Info[playerid][Joueur_JailPar]);

	format(SQL_STRING, sizeof(SQL_STRING), "%sInscrit=%d,Combat=%d,Dance=%d,Origine=%d,Sexe=%d,Permis=%d,PermisPoint=%d,Carte=%d,LocationVehicule=%d,CrashX=%f,CrashY=%f,CrashZ=%f,CrashInterieur=%d,",
	SQL_STRING,Joueur_Info[playerid][Joueur_Inscrit],Joueur_Info[playerid][Joueur_Combat],Joueur_Info[playerid][Joueur_Dance],Joueur_Info[playerid][Joueur_Origine],Joueur_Info[playerid][Joueur_Sexe],
	Joueur_Info[playerid][Joueur_Permis],Joueur_Info[playerid][Joueur_PermisPoint],Joueur_Info[playerid][Joueur_Carte],Joueur_Info[playerid][Joueur_LocationVehicule],Joueur_Info[playerid][Joueur_CrashX],
	Joueur_Info[playerid][Joueur_CrashY],Joueur_Info[playerid][Joueur_CrashZ],Joueur_Info[playerid][Joueur_CrashInterieur]);

	format(SQL_STRING, sizeof(SQL_STRING), "%sCrashVirtualWorld=%d,Faction=%d,Rang=%d,RangJob=%d,PayeJob=%d,Ban=%d,BanRaison='%s',BanPar='%s' WHERE Nom='%s'",SQL_STRING,
	Joueur_Info[playerid][Joueur_CrashVirtualWorld],Joueur_Info[playerid][Joueur_Faction],Joueur_Info[playerid][Joueur_Rang],Joueur_Info[playerid][Joueur_Job],
	Joueur_Info[playerid][Joueur_RangJob],Joueur_Info[playerid][Joueur_PayeJob],Joueur_Info[playerid][Joueur_Ban],Joueur_Info[playerid][Joueur_BanRaison],Joueur_Info[playerid][Joueur_BanPar], Joueur_Nom);
    mysql_query(SQL_STRING);
    return 1;
}
Reply
#2

Explain more...
Reply
#3

Basically, it records all of the information well but for example, the name of which one to jail, reason, or even the WHERE name, it saves it. (see debug)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)