Guten Morgen, ich habe ein Problem.. und zwar wird mir die SkinID in der Datenbank [MYSQL] nicht gespeichert..
Somit auch nicht geladen..
enum PI //Spielerinfos
{
eingeloggt,
level,
id,
adminlevel,
skins
}
spielerspeichern(playerid)
{
if(SI[playerid][eingeloggt]==0)return 1;
new query[128];
format(query,sizeof(query),"UPDATE user SET level='%i',adminlevel='%i',skins='%i',geld='%i' WHERE id='%i'",SI[playerid][level],GetPlayerMoney(playerid),SI[playerid][adminlevel],SI[playerid][skins],SI[playerid][id]);
mysql_function_query(dbhandle,query,false,"","");
return 1;
}
public pwresponse(playerid)
{
new rows,fields;
cache_get_data(rows,fields,dbhandle);
if(rows==0)
{
SI[playerid][eingeloggt] = 1;
SI[playerid][level] = cache_get_field_content_int(0,"level",dbhandle);
SetPlayerScore(playerid,SI[playerid][level]);
SI[playerid][id] = cache_get_field_content_int(0,"id",dbhandle);
SetPlayerMoney(playerid,cache_get_field_content_int(0,"geld",dbhandle));
SI[playerid][adminlevel] = cache_get_field_content_int(0,"adminlevel",dbhandle);
SI[playerid][skins] = cache_get_field_content_int(0,"skins",dbhandle);
SetPlayerSkin(playerid,SI[playerid][skins]);
}
else
{
SendClientMessage(playerid,rot,"Falsches Passwort");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Gib bitte dein Passwort ein","Login","Abbrechen");
}
return 1;
}
Kann mir jemand auf die Sprünge helfen?
Gruß