Merhabalar arkadaşlar, birkaç MYSQL hatasıyla karşı karşıyayım. Yardımcı olabilecek (gönüllü) arkadaşlar olursa çok memnun kalırım. Gerçekten benim için önemli ve bir şeyin kilit noktasını değiştiriyor. Kayıt sistemleri...

Errorlar
[12:53:02] [plugins/mysql] cache_get_value_name_float: invalid row index '0' (number of rows: '0') (C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:45821 -> C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:41960)
[12:53:02] [plugins/mysql] cache_get_value_name_float: invalid row index '0' (number of rows: '0') (C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:45821 -> C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:41961)
[12:53:02] [plugins/mysql] cache_get_value_name_float: invalid row index '0' (number of rows: '0') (C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:45821 -> C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:41962)
[12:53:02] [plugins/mysql] cache_get_value_name_int: invalid row index '0' (number of rows: '0') (C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:45828 -> C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:41963)
[12:53:02] [plugins/mysql] cache_get_value_name_int: invalid row index '0' (number of rows: '0') (C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:45828 -> C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:41964)
[12:53:20] [plugins/mysql] error #1062 while executing query "INSERT INTO `oyuncular` (`isim`, `hesap`, `oSonGiris`, `yaratildi`) VALUES ('Viga_Test', '1', '01/07/2022, 12:53', '0')": Duplicate entry '0' for key 'VatandaslikNo' (C:\Users\Çağatay\Desktop\Viga Project\gamemodes\crp.pwn:41247)


Belirtilen kod satırı (Son hata için)
format(sorgu, sizeof(sorgu),"INSERT INTO `oyuncular` (`isim`, `hesap`, `oSonGiris`, `yaratildi`) VALUES ('%s', '%d', '%s', '0')", SQL_ReturnEscaped(isim), OyuncuBilgi[oyuncuid][oHesap], Tarih());

Kod satırının tamamı
public KarakterKontrol(oyuncuid, isim[])
{
    new rows, fields;
    cache_get_row_count(rows);
    cache_get_field_count(fields);

    if(rows) return DialogGoster(oyuncuid, DIALOG_KARAKTER_YARAT, DIALOG_STYLE_INPUT, "vRP: Karaker Oluşturma", "{B70000}HATA: {FFFFFF}Bu karakter ismi kullanımda.\n{FFFFFF}Yeni karakteriniz için isim girin;", "Tamam", "İptal");

    new sorgu[256 + MAX_PLAYER_NAME];
    format(sorgu, sizeof(sorgu),"INSERT INTO `oyuncular` (`isim`, `hesap`, `oSonGiris`, `yaratildi`) VALUES ('%s', '%d', '%s', '0')", SQL_ReturnEscaped(isim), OyuncuBilgi[oyuncuid][oHesap], Tarih());
    mysql_tquery(mysqlB, sorgu, "OyuncuYaratildi", "d", oyuncuid);
    format(OyuncuBilgi[oyuncuid][oIsim], MAX_PLAYER_NAME, "%s", isim);
    SetPlayerName(oyuncuid, OyuncuBilgi[oyuncuid][oIsim]);
    IsimLabelGuncelle(oyuncuid);
    OyuncuCinsiyetSec(oyuncuid);
    SunucuMesaji(oyuncuid, "Karakteriniz oluşturuldu.");
    for(new i = 0; i != 14; i++) PlayerTextDrawHide(oyuncuid, OyuncuBilgi[oyuncuid][oGirisTextdraw][i]);
    return 1;
}
Şimdiden teşekkürler.