19.11.2015, 06:58
(
Последний раз редактировалось Nin9r; 19.11.2015 в 07:37.
)
Hi!
These is my errors:
1.
Line 11155:
Entire code:
2. In mysql_log i receive this:
a.
b.
Line:
c.
Thank you!
These is my errors:
1.
Код:
[18:57:18] [debug] #0 000a7448 in public OnPlayerTakeDamage (playerid=12, issuerid=65535, Float:amount=0.27225, weaponid=37, bodypart=3) at D:\server\gamemodes\vortex.pwn:11155 [18:57:18] [debug] Run time error 4: "Array index out of bounds" [18:57:18] [debug] Accessing element at index 65535 past array upper bound 999
Код:
if(JoinedGunGame[issuerid] >= 2)
Код:
if(JoinedGunGame[issuerid] >= 2) { if(JoinedGunGame[playerid] == 2) { if(!IsPlayerInAnyVehicle(issuerid)) { new Float:shealth; new Float:slx, Float:sly, Float:slz; GetPlayerHealth(issuerid, shealth); SetPlayerHealth(issuerid, shealth-5); GetPlayerPos(issuerid, slx, sly, slz); SetPlayerPos(issuerid, slx, sly, slz+5); } } }
a.
Код:
[16:16:25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
Код:
[16:16:30] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0', playerFirstLogin = '0', playerAdminName = '', playerPrisonTime = '0', player' at line 1
Код:
format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerWarning1 = '%s', playerWarning2 = '%s', playerWarning3 = '%s', playerHospitalized = '%d', playerFirstLogin = '%d', playerAdminName = '%s', playerPrisonTime = '%d', playerPrisonID = '%d', playerPhoneNumber = '%d' WHERE playerID = '%d'", PlayerData[playerid][pDriveLicense], PlayerData[playerid][pFlyLic], PlayerData[playerid][pGunLic], PlayerData[playerid][pHospitalized], PlayerData[playerid][pFirstLogin], PlayerData[playerid][pCrimeReason], PlayerData[playerid][pPrisonTime], PlayerData[playerid][pPrisonID], PlayerData[playerid][pPhoneNumber],PlayerData[playerid][pInternalID]); mysql_tquery(handle,saveQuery);
Код:
[12:49:32] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1 [12:49:32] [WARNING] cache_get_row_count - no active cache [12:49:32] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')