Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:tunecar(playerid, params[], help)
- {
- #pragma unused params
- #pragma unused help
- 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)");
- new playerstate = GetPlayerState(playerid);
- if(playerstate == PLAYER_STATE_DRIVER)
- {
- 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;}
- if(GetPlayerVehicleID(playerid) != VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta
- ]][vID] && GetPlayerVehicleID(playerid) != VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta2
- ]][vID]) return SCM(playerid, -1, ""CRVENA"(GRESKA)"SIVA"Mozete tunirate svamo privatno vozilo");
- switch(pmodelid[playerid])
- {
- case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
- 533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
- 426,547,405, 409,550,566,406,540,421,529,431,438,437,420,525,552,416,433,427,490,528,
- 407,544,470,598,596,599,601,428,499,609,524,578,486,573,455,588,403,514,423,
- 414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
- 483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558:
- {
- 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");
- return SendClientMessage(playerid, 0xFFFF00AA, "[INFO]: Select an item.");
- }
- default: return SendClientMessage(playerid,0xAA3333AA,"[ERROR]: Ne mozes tunirati ovo vozilo!");
- }
- }
- else SendClientMessage(playerid, 0xAA3333AA, "[ERROR]: Moras biti vozac!");
- return 1;
- }
- ///DEBUG KOJI MI IZBACI
- [00:51:35] [debug] Run time error 4: "Array index out of bounds"
- [00:51:35] [debug] Attempted to read/write array element at negative index -1
- [00:51:35] [debug] AMX backtrace:
- [00:51:35] [debug] #0 004d6440 in public @_yCtunecar (0, 23726488, 0) from SU.amx
- [00:51:35] [debug] #1 004d60e4 in public @yC_tunecar (0, 23726488, 0, 0) from SU.amx
- [00:51:35] [debug] #2 native CallRemoteFunction () from samp-server.exe
- [00:51:35] [debug] #3 0001c010 in ?? (0, 23726452, 0) from SU.amx
- [00:51:35] [debug] #4 0001b854 in ?? (0, 23726452) from SU.amx
- [00:51:35] [debug] #5 00007f1c in public OnPlayerCommandText (0, 23726452) from SU.amx
- [00:51:37] [debug] Run time error 4: "Array index out of bounds"
- [00:51:37] [debug] Attempted to read/write array element at negative index -1
- [00:51:37] [debug] AMX backtrace:
- [00:51:37] [debug] #0 004d6440 in public @_yCtunecar (0, 23726488, 0) from SU.amx
- [00:51:37] [debug] #1 004d60e4 in public @yC_tunecar (0, 23726488, 0, 0) from SU.amx
- [00:51:37] [debug] #2 native CallRemoteFunction () from samp-server.exe
- [00:51:37] [debug] #3 0001c010 in ?? (0, 23726452, 0) from SU.amx
- [00:51:37] [debug] #4 0001b854 in ?? (0, 23726452) from SU.amx
- [00:51:37] [debug] #5 00007f1c in public OnPlayerCommandText (0, 23726452) from SU.amx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement