Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. YCMD:tunecar(playerid, params[], help)
  2. {
  3. #pragma unused params
  4. #pragma unused help
  5. if(PlayerInfo[playerid][pVip] < 1 && PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pGM] < 1) return SCM(playerid, 1, "Niste ovlasceni da koristite ovu komandu (VIP/Staff)");
  6. new playerstate = GetPlayerState(playerid);
  7. if(playerstate == PLAYER_STATE_DRIVER)
  8. {
  9. if(!PlayerToPoint(5.0,playerid,2455.2229,-1460.9663,24.0000)){ SendClientMessage(playerid, -1, "{FF0000}[GRESKA]{FFFFFF}Niste na mestu za tuniranje vozila !");return 1;}
  10. if(GetPlayerVehicleID(playerid) != VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta
  11. ]][vID] && GetPlayerVehicleID(playerid) != VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta2
  12. ]][vID]) return SCM(playerid, -1, ""CRVENA"(GRESKA)"SIVA"Mozete tunirate svamo privatno vozilo");
  13. switch(pmodelid[playerid])
  14. {
  15. case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
  16. 533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
  17. 426,547,405, 409,550,566,406,540,421,529,431,438,437,420,525,552,416,433,427,490,528,
  18. 407,544,470,598,596,599,601,428,499,609,524,578,486,573,455,588,403,514,423,
  19. 414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
  20. 483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558:
  21. {
  22. ShowPlayerDialog(playerid, 1338, DIALOG_STYLE_LIST, "Tune car menu","Paint Jobs\nColors\nExhausts\nFront Bumper\nRear Bumper\nRoof\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nNext page", "Select", "Exit");
  23. return SendClientMessage(playerid, 0xFFFF00AA, "[INFO]: Select an item.");
  24. }
  25. default: return SendClientMessage(playerid,0xAA3333AA,"[ERROR]: Ne mozes tunirati ovo vozilo!");
  26. }
  27. }
  28. else SendClientMessage(playerid, 0xAA3333AA, "[ERROR]: Moras biti vozac!");
  29. return 1;
  30. }
  31.  
  32.  
  33.  
  34. ///DEBUG KOJI MI IZBACI
  35.  
  36. [00:51:35] [debug] Run time error 4: "Array index out of bounds"
  37. [00:51:35] [debug] Attempted to read/write array element at negative index -1
  38. [00:51:35] [debug] AMX backtrace:
  39. [00:51:35] [debug] #0 004d6440 in public @_yCtunecar (0, 23726488, 0) from SU.amx
  40. [00:51:35] [debug] #1 004d60e4 in public @yC_tunecar (0, 23726488, 0, 0) from SU.amx
  41. [00:51:35] [debug] #2 native CallRemoteFunction () from samp-server.exe
  42. [00:51:35] [debug] #3 0001c010 in ?? (0, 23726452, 0) from SU.amx
  43. [00:51:35] [debug] #4 0001b854 in ?? (0, 23726452) from SU.amx
  44. [00:51:35] [debug] #5 00007f1c in public OnPlayerCommandText (0, 23726452) from SU.amx
  45. [00:51:37] [debug] Run time error 4: "Array index out of bounds"
  46. [00:51:37] [debug] Attempted to read/write array element at negative index -1
  47. [00:51:37] [debug] AMX backtrace:
  48. [00:51:37] [debug] #0 004d6440 in public @_yCtunecar (0, 23726488, 0) from SU.amx
  49. [00:51:37] [debug] #1 004d60e4 in public @yC_tunecar (0, 23726488, 0, 0) from SU.amx
  50. [00:51:37] [debug] #2 native CallRemoteFunction () from samp-server.exe
  51. [00:51:37] [debug] #3 0001c010 in ?? (0, 23726452, 0) from SU.amx
  52. [00:51:37] [debug] #4 0001b854 in ?? (0, 23726452) from SU.amx
  53. [00:51:37] [debug] #5 00007f1c in public OnPlayerCommandText (0, 23726452) from SU.amx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement