Advertisement
Guest User

Crash

a guest
Sep 16th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.79 KB | None | 0 0
  1. [11:27:13] [debug] AMX backtrace:
  2. [11:27:13] [debug] #0 002e759c in ?? (... <3 arguments>) at E:\SAMP SERVER NOVI!!!!\gamemodes\MarkelaMod.pwn:33100
  3. [11:27:13] [debug] #1 00011874 in public OnPlayerKeyStateChange (playerid=0, newkeys=16, oldkeys=0) at E:\SAMP SERVER NOVI!!!!\pawno\include\YSI\y_hooks/impl.inc:1948
  4. [11:27:56] [debug] Run time error 4: "Array index out of bounds"
  5. [11:27:56] [debug]  Accessing element at index 501 past array upper bound 500
  6. [11:27:56] [debug] AMX backtrace:
  7. [11:27:56] [debug] #0 002e759c in ?? (... <3 arguments>) at E:\SAMP SERVER NOVI!!!!\gamemodes\MarkelaMod.pwn:33100
  8. [11:27:56] [debug] #1 00011874 in public OnPlayerKeyStateChange (playerid=0, newkeys=16, oldkeys=0) at E:\SAMP SERVER NOVI!!!!\pawno\include\YSI\y_hooks/impl.inc:1948
  9. // ovo je debug
  10.  
  11.  
  12.   for(new i; i < MAX_STANOVA; i++)
  13.         {
  14.     linija 33100 >>>>>      if(IsPlayerInRangeOfPoint(playerid, 3.0, SI[i][sUlazX], SI[i][sUlazY], SI[i][sUlazZ]))
  15.             {
  16.                 if(PlayerInfo[playerid][pPosedovanjeStana] == i || SI[i][sZatvoreno] == 0)
  17.                 {
  18.                     SetPlayerVirtualWorld(playerid, SI[i][sVW]);
  19.                     SetPlayerInterior(playerid, SI[i][sInt]);
  20.                     SetPlayerPos(playerid, SI[i][sIzlazX], SI[i][sIzlazY], SI[i][sIzlazZ]);
  21.                 }
  22.                 else
  23.                 {
  24.                     GameTextForPlayer(playerid,"~r~ZAKLJUCANO",4000,1);
  25.                     return 1;
  26.                 }
  27.             }
  28.             if(IsPlayerInRangeOfPoint(playerid, 3.0, SI[i][sIzlazX], SI[i][sIzlazY], SI[i][sIzlazZ]) && GetPlayerVirtualWorld(playerid) == SI[i][sVW])
  29.             {
  30.                 SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);
  31.                 SetPlayerPos(playerid, SI[i][sUlazX], SI[i][sUlazY], SI[i][sUlazZ]);
  32.                 return 1;
  33.             }
  34.         }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement