Вопросы

TToPDaY
Новичок

Не сохраняется ник в базе данных, просто пустое поле. Помогите решить проблему.

[WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('25')
[WARNING] CMySQLResult::GetRowData - invalid row ('8') or field index ('1')

[ERROR] cache_get_row_int - invalid datatype
[WARNING] CMySQLResult::GetRowData - invalid row ('8') or field index ('2')
[ERROR] cache_get_row_int - invalid datatype
[WARNING] CMySQLResult::GetRowData - invalid row ('8') or field index ('3')
[ERROR] cache_get_row_int - invalid datatype

Данная проблема появилась из за переноса мода 0.3e на самп 0.3.7.
 

Поделиться сообщением


Ссылка на сообщение

2 ответа на этот вопрос

  • 0
TToPDaY
Новичок
Спойлер

	p_info[playerid][pID] = cache_get_row_int(0, 0, dbHandle); // id
	cache_get_row(0, 1, GetName(playerid), dbHandle, 24); // name
	cache_get_row(0, 2, p_info[playerid][pPassword], dbHandle, 32); // password
	cache_get_row(0, 3, p_info[playerid][pLastIP], dbHandle, 16); // ip
	p_info[playerid][pAdmin] = cache_get_row_int(0, 6, dbHandle); // admin
	p_info[playerid][pSecurityCode] = cache_get_row_int(0, 7, dbHandle); // securitycode
	p_info[playerid][pCheckCode] = cache_get_row_int(0, 8, dbHandle); // checkcode
	cache_get_row(0, 9, p_info[playerid][pMail], dbHandle, 64); // mail
	p_info[playerid][pLevel] = cache_get_row_int(0, 10, dbHandle); // level
	p_info[playerid][pCash] = cache_get_row_int(0, 11, dbHandle); // cash
	p_info[playerid][pBank] = cache_get_row_int(0, 12, dbHandle); // bank
	p_info[playerid][pExp] = cache_get_row_int(0, 13, dbHandle); // exp
	cache_get_row(0, 14, p_info[playerid][pRegIP], dbHandle, 16); // regip
	cache_get_row(0, 15, p_info[playerid][pRegData], dbHandle, 15); // datareg
	p_info[playerid][pLeader] = cache_get_row_int(0, 16, dbHandle); // leader
	p_info[playerid][pTempLeader] = cache_get_row_int(0, 17, dbHandle); // templeader
	p_info[playerid][pMember] = cache_get_row_int(0, 18, dbHandle); // member
	p_info[playerid][pRank] = cache_get_row_int(0, 19, dbHandle); // rank
	p_info[playerid][pWarn] = cache_get_row_int(0, 20, dbHandle); // warn
	p_info[playerid][pSex] = cache_get_row_int(0, 21, dbHandle); // sex
	p_info[playerid][pAge] = cache_get_row_int(0, 22, dbHandle); // age
	ClosetSkins[playerid][0] = cache_get_row_int(0, 23, dbHandle); // model
	p_info[playerid][pMemberSkin] = cache_get_row_int(0, 24, dbHandle); // memberskin
	cache_get_row(0, 25, p_info[playerid][pLics], dbHandle, 16); // lic
	p_info[playerid][pMuted] = cache_get_row_int(0, 28, dbHandle); // mute
	p_info[playerid][pRobbery] = cache_get_row_int(0, 30, dbHandle); //checktime
	p_info[playerid][pLeaderPosition] = cache_get_row_int(0, 31, dbHandle); // news
	cache_get_row(0, 32, p_info[playerid][pPhones], dbHandle, 16); // phone
	p_info[playerid][pPhoneNumber] = cache_get_row_int(0, 33, dbHandle); // phonenumber
	cache_get_row(0, 34, p_info[playerid][pTexts], dbHandle, 40); // text
	p_info[playerid][pJail] = cache_get_row_int(0, 35, dbHandle); // jail
	p_info[playerid][pJailTime] = cache_get_row_int(0, 36, dbHandle); // jailtime
	p_info[playerid][pWanted] = cache_get_row_int(0, 37, dbHandle); // wanted
	p_info[playerid][pWantedTime] = cache_get_row_int(0, 38, dbHandle); // wantedtime
	cache_get_row(0, 39, p_info[playerid][pWantedWho], dbHandle, MAX_PLAYER_NAME); // wantedwho
	cache_get_row(0, 40, p_info[playerid][pWantedReason], dbHandle, 32); // wantedreason
	PlayerHP[playerid] = cache_get_row_float(0, 41, dbHandle); // heal
	p_info[playerid][pDrugs] = cache_get_row_int(0, 42, dbHandle); // drugs
	p_info[playerid][pPatron] = cache_get_row_int(0, 43, dbHandle); // patron
	p_info[playerid][pGunAmount] = cache_get_row_int(0, 44, dbHandle); // gunamount
	p_info[playerid][pCrimes] = cache_get_row_int(0, 45, dbHandle); // crimes
	p_info[playerid][pJob] = cache_get_row_int(0, 46, dbHandle); // job
	p_info[playerid][pMarried] = cache_get_row_int(0, 47, dbHandle); // married
	cache_get_row(0, 48, p_info[playerid][pWhoMarried], dbHandle, MAX_PLAYER_NAME); // whomarried
	cache_get_row(0, 49, p_info[playerid][pReferal], dbHandle, MAX_PLAYER_NAME); // referal
	p_info[playerid][pRefMoney] = cache_get_row_int(0, 50, dbHandle); // refmoney
	p_info[playerid][pPayCheck] = cache_get_row_int(0, 51, dbHandle); // paycheck
	p_info[playerid][pCharity] = cache_get_row_int(0, 52, dbHandle); // charity
	p_info[playerid][pVip] = cache_get_row_int(0, 53, dbHandle); // vip
	p_info[playerid][pVipTime] = cache_get_row_int(0, 54, dbHandle); // viptime
	p_info[playerid][pTime] = cache_get_row_int(0, 55, dbHandle); // time
	p_info[playerid][pJackCar] = cache_get_row_int(0, 56, dbHandle); // jackcar
	p_info[playerid][pCredits] = cache_get_row_int(0, 57, dbHandle); // credits
	p_info[playerid][pTotalCredits] = cache_get_row_int(0, 58, dbHandle); // totalcredits
	p_info[playerid][pSkin][0] = cache_get_row_int(0, 59, dbHandle); // skin1
	p_info[playerid][pSkin][1] = cache_get_row_int(0, 60, dbHandle); // skin2
	p_info[playerid][pSkin][2] = cache_get_row_int(0, 61, dbHandle); // skin3
	p_info[playerid][pSpawnChange] = cache_get_row_int(0, 62, dbHandle); // spawnchange
	
	p_info[playerid][pGunSkill][0] = cache_get_row_int(0, 63, dbHandle); // sdpistol
	p_info[playerid][pGunSkill][1] = cache_get_row_int(0, 64, dbHandle); // deserteagle
	p_info[playerid][pGunSkill][2] = cache_get_row_int(0, 65, dbHandle); // shotgun
	p_info[playerid][pGunSkill][3] = cache_get_row_int(0, 66, dbHandle); // mp5
	p_info[playerid][pGunSkill][4] = cache_get_row_int(0, 67, dbHandle); // ak47
	p_info[playerid][pGunSkill][5] = cache_get_row_int(0, 68, dbHandle); // m4
	p_info[playerid][pGunSkill][6] = cache_get_row_int(0, 69, dbHandle); // pistol
	p_info[playerid][pGunSkill][7] = cache_get_row_int(0, 70, dbHandle); // microuzi
	SetPlayerSkills(playerid);
	
	p_info[playerid][pHunger] = cache_get_row_int(0, 71, dbHandle); // hunger
	p_info[playerid][pArrestSpawn] = cache_get_row_int(0, 72, dbHandle); // arrespawn
	p_info[playerid][pRAZ] = cache_get_row_int(0, 73, dbHandle); // sportexp
	p_info[playerid][pOnline] = cache_get_row_int(0, 74, dbHandle); // online
	p_info[playerid][pZakon] = cache_get_row_int(0, 75, dbHandle); // zakon
	p_info[playerid][pCity] = cache_get_row_int(0, 76, dbHandle); // city
	p_info[playerid][pWarnTime] = cache_get_row_int(0, 78, dbHandle); // warntime
	//p_info[playerid][pWatch] = cache_get_row_int(0, 79, dbHandle); // watch
	p_info[playerid][pSprunk] = cache_get_row_int(0, 81, dbHandle); // sprunk
	p_info[playerid][pPhoneBalance] = cache_get_row_int(0, 83, dbHandle); // phonebalance
	p_info[playerid][pTruckSkill] = cache_get_row_int(0, 84, dbHandle); // truckskill
	
	p_info[playerid][Disease][0] = cache_get_row_int(0, 85, dbHandle); // Disease
	p_info[playerid][Disease][1] = cache_get_row_int(0, 86, dbHandle); // Disease
	p_info[playerid][Disease][2] = cache_get_row_int(0, 87, dbHandle); // Disease
	p_info[playerid][pRentHouse] = cache_get_row_int(0, 88, dbHandle); // pRentHouse
	ClosetSkins[playerid][1] = cache_get_row_int(0, 89, dbHandle); // cColor2
	ClosetSkins[playerid][2] = cache_get_row_int(0, 90, dbHandle); // cLock
	ClosetSkins[playerid][3] = cache_get_row_int(0, 91, dbHandle); // cCost
	ClosetSkins[playerid][4] = cache_get_row_int(0, 92, dbHandle); // cCost
	
	p_info[playerid][pTimeHour] = cache_get_row_int(0, 93, dbHandle); // cPaintjob
	p_info[playerid][pAptechka] = cache_get_row_int(0, 94, dbHandle); // aptechka
	p_info[playerid][pVoennik] = cache_get_row_int(0, 95, dbHandle); // Voennik
	cache_get_row(0, 97, p_info[playerid][pImproves], dbHandle, 32); // improves
	//p_info[playerid][pSettings] = cache_get_row_int(0, 99, dbHandle); // settings
	//PhoneNumbers[playerid][0] = cache_get_row_int(0, 100, dbHandle); // phnumber1
	p_info[playerid][data_PASS] = cache_get_row_int(0, 101, dbHandle); // pass
	PhoneNumbers[playerid][2] = cache_get_row_int(0, 102, dbHandle); // phnumber3
	PhoneNumbers[playerid][3] = cache_get_row_int(0, 103, dbHandle); // phnumber4
	PhoneNumbers[playerid][4] = cache_get_row_int(0, 104, dbHandle); // phnumber5
	PhoneNumbers[playerid][5] = cache_get_row_int(0, 105, dbHandle); // phnumber6
	PhoneNumbers[playerid][6] = cache_get_row_int(0, 106, dbHandle); // phnumber7 - êîë-âî øòðàôîâ
	PhoneNumbers[playerid][7] = cache_get_row_int(0, 107, dbHandle); // phnumber8 - öåíà îïëàòû øòðàôà
	p_info[playerid][pMailConfirmed] = cache_get_row_int(0, 110, dbHandle); // mailconf

	p_info[playerid][data_NONLINE][1] = cache_get_row_int(0, 112, dbHandle);
	p_info[playerid][data_NONLINE][2] = cache_get_row_int(0, 113, dbHandle);
	p_info[playerid][data_NONLINE][3] = cache_get_row_int(0, 114, dbHandle);
	p_info[playerid][data_NONLINE][4] = cache_get_row_int(0, 115, dbHandle);
	p_info[playerid][data_NONLINE][5] = cache_get_row_int(0, 116, dbHandle);
	p_info[playerid][data_NONLINE][6] = cache_get_row_int(0, 117, dbHandle);
	p_info[playerid][data_NONLINE][7] = cache_get_row_int(0, 118, dbHandle);

 

 

Отредактировано пользователем Nekit_Krut18

Поделиться сообщением


Ссылка на сообщение
Гость
Эта тема закрыта для публикации ответов.
  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • patrickk
      От patrickk
      Всем привет, решил написать dm сервер и довольно хорошим получился, даже на голову выше Goat dm. Оставил не решенную проблему тем что  у меня есть 4 локации с rp run и cj run ну а как добавить cj бег на те локации не знаю и как эта система работает. Надеюсь мне помогут знающие люди
    • Samolet
      От Samolet
      Здраствуйте, cоздаю копию Arizona на ОМП, опен мультиплеер, загрузил и подключил бд, но сервер не хочет вот лог :[2026-10-20T21:03:32+0300] [Info] Log file reloaded. Starting open.mp server (1.5.8.3079) from commit c6759bd8d265171ae3d86598895a23d5a8d92a3b Loading component $CAPI.so Successfully loaded component C-API (1.5.8.3079) with UID 10467dd8d4c56fc6 Loading component LegacyConfig.so Successfully loaded component LegacyConfig (1.5.8.3079) with UID 24ef6216838f9ffc Loading component NPCs.so Successfully loaded component NPCs (1.5.8.3079) with UID 3d0e59e87f4e90bc Loading component Recordings.so Successfully loaded component Recordings (1.5.8.3079) with UID 871144d399f5f613 Loading component Checkpoints.so Successfully loaded component Checkpoints (1.5.8.3079) with UID 44a937350d611dde Loading component TextDraws.so Successfully loaded component TextDraws (1.5.8.3079) with UID 9b5dc2b1d15c992a Loading component Pawn.so Successfully loaded component Pawn (1.5.8.3079) with UID 78906cd9f19c36a6 Loading component GangZones.so Successfully loaded component GangZones (1.5.8.3079) with UID b3351d11ee8d8056 Loading component Actors.so Successfully loaded component Actors (1.5.8.3079) with UID c81ca021eae2ad5c Loading component Pickups.so Successfully loaded component Pickups (1.5.8.3079) with UID cf304faa363dd971 Loading component Dialogs.so Successfully loaded component Dialogs (1.5.8.3079) with UID 44a111350d611dde Loading component Objects.so Successfully loaded component Objects (1.5.8.3079) with UID 59f8415f72da6160 Loading component Console.so Successfully loaded component Console (1.5.8.3079) with UID bfa24e49d0c95ee4 Loading component TextLabels.so Successfully loaded component TextLabels (1.5.8.3079) with UID a0c57ea80a009742 Loading component Variables.so Successfully loaded component Variables (1.5.8.3079) with UID 75e121848bc01fa2 Loading component Databases.so Successfully loaded component Databases (1.5.8.3079) with UID 80092e7eb5821a96 Loading component LegacyNetwork.so Successfully loaded component RakNetLegacyNetwork (1.5.8.3079) with UID ea9799fd79cf8442 Loading component CustomModels.so Successfully loaded component CustomModels (1.5.8.3079) with UID 15e3cb1e7c77ffff Loading component Menus.so Successfully loaded component Menus (1.5.8.3079) with UID 621e219eb97ee0b2 Loading component Vehicles.so Successfully loaded component Vehicles (1.5.8.3079) with UID 3f1f62ee9e22ab19 Loading component Classes.so Successfully loaded component Classes (1.5.8.3079) with UID 8cfb3183976da208 Loading component Timers.so Successfully loaded component Timers (1.5.8.3079) with UID 2ad8124c5ea257a3 Loaded 22 component(s) from /home/gs113492/components Executing Server Config... [2026-10-20T21:03:33+0300] [Info] Loading plugin: crashdetect.so [2026-10-20T21:03:33+0300] [Info] CrashDetect plugin 4.19 [2026-10-20T21:03:33+0300] [Info] Loading plugin: mapandreas.so [2026-10-20T21:03:33+0300] [Info] Loading plugin: streamer.so [2026-10-20T21:03:33+0300] [Info] *** Streamer Plugin v2.9.4 by Incognito loaded *** [2026-10-20T21:03:33+0300] [Info] Loading plugin: sscanf.so [2026-10-20T21:03:33+0300] [Info] [2026-10-20T21:03:33+0300] [Info] =============================== [2026-10-20T21:03:33+0300] [Info] sscanf plugin loaded. [2026-10-20T21:03:33+0300] [Info] Version: 2.8.3 [2026-10-20T21:03:33+0300] [Info] (c) 2018 Alex "Y_Less" Cole [2026-10-20T21:03:33+0300] [Info] =============================== [2026-10-20T21:03:33+0300] [Info] Loading plugin: TOTP.so [2026-10-20T21:03:33+0300] [Info] TOTP plugin v1.0.1 by Games loaded. [2026-10-20T21:03:33+0300] [Info] Loading plugin: mysql_static.so [2026-10-20T21:03:33+0300] [Info] >> plugin.mysql: R39-6 successfully loaded. [2026-10-20T21:03:33+0300] [Info] Loading plugin: libpawn_json.so [2026-10-20T21:03:34+0300] [Error] Function not registered: YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_RegAlias [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_Reset [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_RegHandler [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_Delete [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_New [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_IgnoreBits [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_Init [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_SendRPC [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_SendPacket [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_WriteValue [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_ReadValue [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_ReadValue [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Info] [debug] BS_WriteValue [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendPacket [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendRPC [2026-10-20T21:03:34+0300] [Info] [debug] PR_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_IgnoreBits [2026-10-20T21:03:34+0300] [Info] [debug] BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Info] [debug] BS_New [2026-10-20T21:03:34+0300] [Info] [debug] BS_Delete [2026-10-20T21:03:34+0300] [Info] [debug] PR_RegHandler [2026-10-20T21:03:34+0300] [Info] [debug] BS_Reset [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] PC_RegAlias [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_ReadValue [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Info] [debug] BS_WriteValue [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendPacket [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendRPC [2026-10-20T21:03:34+0300] [Info] [debug] PR_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_IgnoreBits [2026-10-20T21:03:34+0300] [Info] [debug] BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Info] [debug] BS_New [2026-10-20T21:03:34+0300] [Info] [debug] BS_Delete [2026-10-20T21:03:34+0300] [Info] [debug] PR_RegHandler [2026-10-20T21:03:34+0300] [Info] [debug] BS_Reset [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] PC_RegAlias [2026-10-20T21:03:34+0300] [Info] Legacy Network started on ***.**.**.***:2717. Помогите пожалуйста
       
    • defender_375
      От defender_375
      я зделал все что нужно по етой инструкции и запустил нажал Load а там красная ошибка что делать?
       
      Map Construction - программа для построения мапинга КР и др.
       
      Установка:
       
      Файлы background.txd, editor.exe, GTAINTERFACE.dll, newton.dll скопируйте в папку с игрой. Пример: C:\Program Files\GTA Criminal Russia
      Файл gta3.img скопируйте в папку с игрой\models с заменой. Пример: C:\Program Files\GTA Criminal Russia\models
      Файл water.dat скопируйте в папку с игрой\data с заменой. Пример: C:\Program Files\GTA Criminal Russia\data
       
      Для использования в Map Construction объекты 0.3e, установите в папку с игрой samp 0.3e
      Скачать MC можно тут