stock LoadKoffer(playerid)
{
new DBResult:Result, str[512];
format(str, sizeof(str), "SELECT * FROM `"#SERVERTAG"_Koffer` WHERE Name = '%s'",SpielerName(playerid));
Result = db_query(Database,str);
db_get_field_assoc(Result,"Fach_1",str,sizeof(str));
kInfo[playerid][Fach1] = strval(str);
db_get_field_assoc(Result,"Fach_1_Muni",str,sizeof(str));
kInfo[playerid][mFach1] = strval(str);
db_get_field_assoc(Result,"Fach_2",str,sizeof(str));
kInfo[playerid][Fach2] = strval(str);
db_get_field_assoc(Result,"Fach_2_Muni",str,sizeof(str));
kInfo[playerid][mFach2] = strval(str);
db_get_field_assoc(Result,"Fach_3",str,sizeof(str));
kInfo[playerid][Fach3] = strval(str);
db_get_field_assoc(Result,"Fach_3_Muni",str,sizeof(str));
kInfo[playerid][mFach3] = strval(str);
db_get_field_assoc(Result,"Geld",str,sizeof(str));
kInfo[playerid][kGeld] = strval(str);
db_free_result(Result);
}
Wenn ich es so Laden lasse stürzt der Server ab
Kann man es irgendwie besser laden?