Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////Mode/////////
- SetGameModeText("RPG v1.1");
- ///////////////////////////// Speed//////////////
- function Checkvehinfo(i) {
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER && InDealer[i] == 0) {
- if(InRaceArena[i] == 1 && RaceStarted == 0) return 1;
- new
- status[180], str[256], benzina[64],
- engine,lights,alarm,doors,bonnet,boot,objective,
- vehicle = GetPlayerVehicleID(i), spe = Carspeed(i), carid = FindSpawnID(vehicle);
- GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
- if(doors == 1) { status = "Doors: ~r~Locked~w~~h~"; }
- else if(doors == 0) { status = "Doors: ~w~Unlocked~w~~h~"; }
- else status = "Doors: ~w~Unlocked~w~~h~";
- if(Gas[vehicle] > 20) format(benzina, sizeof(benzina), "%d", Gas[vehicle]);
- else format(benzina, sizeof(benzina), "~r~%d", Gas[vehicle]);
- if(CarInfo[carid][cID] != -2 && carid != 0 && !IsAPlane(vehicle)) {
- if(!IsABike(vehicle) && !IsAPlane(vehicle)) format(str, sizeof(str), "Speed: ~r~%d~w~~h~ km/h~w~~h~~n~Odometer: %.2f~n~Radio: %s~n~%s~n~Fuel: %s%s", spe, CarInfo[carid][KM], GetVehicleRadio(vehicle), status, benzina, "%");
- else format(str, sizeof(str), "Speed: ~r~%d~w~~h~ km/h~n~Odometer: %.2f~n~Radio: %s~n~%s", spe, CarInfo[carid][KM], GetVehicleRadio(vehicle), status);
- PlayerTextDrawSetString(i, Speedo, str);
- PlayerTextDrawShow(i, Speedo);
- }
- else {
- if(!IsABike(vehicle) && !IsAPlane(vehicle)) format(str, sizeof(str), "Speed: ~r~%d~w~~h~ km/h~w~~h~~n~Radio: %s~n~%s~n~Fuel: %s%s", spe, GetVehicleRadio(vehicle), status, benzina, "%");
- else format(str, sizeof(str), "Speed: ~r~%d~w~~h~ km/h~n~Radio: %s~n~%s", spe, GetVehicleRadio(vehicle), status);
- PlayerTextDrawSetString(i, Speedo, str);
- PlayerTextDrawShow(i, Speedo);
- }
- }
- return 1;
- }
- ///////////////////// Erorile astea le primesc cand pornesc serverul////////////
- [21:28:09] [debug] Run time error 4: "Array index out of bounds"
- [21:28:09] [debug] Accessing element at index 25 past array upper bound 24
- [21:28:09] [debug] AMX backtrace:
- [21:28:09] [debug] #0 002c6024 in public load_apartaments () from beta.amx
- [21:28:09] [debug] #1 000a7730 in ?? () from beta.amx
- [21:28:09] [debug] #2 000286c0 in public L_AFK_OnGM () from beta.amx
- [21:28:09] [debug] #3 native CallLocalFunction () from samp03svr
- [21:28:09] [debug] #4 00018c00 in public SSCANF_OnGameModeInit () from beta.amx
- [21:28:09] [debug] #5 00012fb0 in public Itter_OnGameModeInit () from beta.amx
- [21:28:09] [debug] #6 native CallLocalFunction () from samp03svr
- [21:28:09] [debug] #7 000120d4 in public ScriptInit_OnGameModeInit () from beta.amx
- [21:28:09] [debug] #8 00011058 in public PZone_OnGameModeInit () from beta.amx
- [21:28:09] [debug] #9 native CallLocalFunction () from samp03svr
- [21:28:09] [debug] #10 00006cbc in public OnGameModeInit () from beta.amx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement