Hey,
Ich wollte die IPS in der Datenbank speichern, doch i.wie klappt es nicht!
Der schreibt nichts in die Datenbank
stock savePlayer(playerid)
{
if(sInfo[playerid][pEingeloggt]==0)return 1;
new query[256];
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
if(!strcmp(plrIP, "127.0.0.1"))
format(query,sizeof(query),"UPDATE user SET level='%i',money='%i',kills = '%d',tode = '%d',ip = '%s',adminlevel='%i' WHERE id='%i'",sInfo[playerid][pLevel],GetPlayerMoney(playerid),sInfo[playerid][pKills],sInfo[playerid][pTod],plrIP,sInfo[playerid][pAdmin],sInfo[playerid][PlayerID]);
mysql_function_query(dbhandle,query,false,"","");
return 1;
}
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
if(!strcmp(plrIP, "127.0.0.1"))
mysql_escape_string(inputtext,passwort,dbhandle);
format(query,sizeof(query),"INSERT INTO user (username,password,ip) VALUES ('%s','%s','%s') ",name,passwort,plrIP);
mysql_function_query(dbhandle,query,false,"","");