Lieben User,
Ich bin seit einer zeit dabei einen SAMP Server zu schreiben,
Leider ist mir wohl ein fehler beim Laden unterlaufen. Leider weiß ich nicht woran es Liegt hier mal den Error der MYSQL Log:
[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("level")[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("money")[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("spawnchange")[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("hp")[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("alevel")[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("frak")[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("frang")[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("donator")[20:23:05] [WARNING] CMySQLResult::GetRowDataByName - field not found ("carkeys")
Hier der SAMP Code:
public OnCheckPassword(playerid){new num_fields,num_rows; cache_get_data(num_rows,num_fields,database); if(num_rows==1) { //load player[playerid][level] = cache_get_field_content_int(0,"level",database); player[playerid][money] = cache_get_field_content_int(0,"money",database); player[playerid][spawnchange] = cache_get_field_content_int(0,"spawnchange",database); player[playerid][hp] = cache_get_field_content_int(0,"hp",database); player[playerid][alevel] = cache_get_field_content_int(0,"alevel",database); player[playerid][frak] = cache_get_field_content_int(0,"frak",database); player[playerid][frang] = cache_get_field_content_int(0,"frang",database); player[playerid][donator] = cache_get_field_content_int(0,"donator",database); player[playerid][carkeys] = cache_get_field_content_int(0,"carkeys",database); player[playerid][db_id] = cache_get_field_content_int(0,"id",database); SetPlayerScore(playerid, player[playerid][level]); GivePlayerMoney(playerid, player[playerid][money]); SetPlayerHealth(playerid,player[playerid][hp]); SendClientMessage(playerid, COLOR_RED, player[playerid][alevel]); } else { SendClientMessage(playerid,COLOR_RED,"Das Passwort ist falsch."); ShowPlayerDialog(playerid,LOGIN_D,DIALOG_STYLE_PASSWORD,"Login","Gibt dein Passwort ein:","Okay","Abbrechen"); } return 1;}
Würde mich über schnelle hilfe freuen.