Guten Abend,
kurz und knapp: Hab alles aus dem Tutorial -> [ SCRIPTING ] MySQL Registersystem [BlueG R8+ (R26)]
Save:
stock SavePlayerData(playerid){
new query[150 + MAX_PLAYER_NAME],day,month,year; getdate(year,month,day);
format(User[playerid][LastLogin],11,"%d/%d/%d",day,month,year);
mysql_format(mycon,query,sizeof(query),"UPDATE `User` SET `Geld` = %d,`Leben` = %.1f,`LastLogin` = '%e' WHERE `Name` = '%e'",User[playerid][Geld],User[playerid][Leben],User[playerid][LastLogin],User[playerid][Username]);
mysql_tquery(mycon,query,"","");
return 1;
}