Detaljan opis problema:Imam problem na cmd /popravi za mehanicare naime odradio sam mehanicare i probam drugu da fixam auto /popravi mod pande evo dole sve
Dio skripte:
[14:20:50] 46.35.142.40:26122 requests connection cookie.
[14:20:51] Incoming connection: 46.35.142.40:26122 id: 1
[14:20:51] Darly_Dixon has joined the server (1:46.35.142.40)
[14:21:09] RCON (In-Game): Player #0 (Stalenzi_Waldez) has logged in.
[14:21:17] RCON (In-Game): Player sent command: weather 13
[14:22:39] Run time error 4: "Array index out of bounds"
[14:22:39] Accessing element at index 7 past array upper bound 6
[14:22:39] AMX backtrace:
[14:22:39] #0 0014015c in ?? () from QGRP.amx
[14:22:39] #1 0000e5cc in public OnPlayerEnterVehicle () from QGRP.amx
[14:22:41] Run time error 4: "Array index out of bounds"
[14:22:41] Accessing element at index 7 past array upper bound 6
[14:22:41] AMX backtrace:
[14:22:41] #0 0014015c in ?? () from QGRP.amx
[14:22:41] #1 0000e5cc in public OnPlayerEnterVehicle () from QGRP.amx
[14:22:50] Run time error 4: "Array index out of bounds"
[14:22:50] Accessing element at index 7 past array upper bound 6
[14:22:50] AMX backtrace:
[14:22:50] #0 0014015c in ?? () from QGRP.amx
[14:22:50] #1 0000e5cc in public OnPlayerEnterVehicle () from QGRP.amx
[14:22:55] Run time error 4: "Array index out of bounds"
[14:22:55] Accessing element at index 7 past array upper bound 6
[14:22:55] AMX backtrace:
[14:22:55] #0 0014015c in ?? () from QGRP.amx
[14:22:55] #1 0000e5cc in public OnPlayerEnterVehicle () from QGRP.amx
[14:23:08] Run time error 4: "Array index out of bounds"
[14:23:08] Accessing element at index 7 past array upper bound 6
[14:23:08] AMX backtrace:
[14:23:08] #0 0014015c in ?? () from QGRP.amx
[14:23:08] #1 0000e5cc in public OnPlayerEnterVehicle () from QGRP.amx
[14:23:22] Server crashed while executing QGRP.amx
[14:23:22] AMX backtrace:
[14:23:22] #0 00000061 in ?? () from QGRP.amx
[14:23:22] #1 00000069 in public @yC_popravi () from QGRP.amx
[14:23:22] #2 000222e0 in ?? () from QGRP.amx
[14:23:22] #3 00021b9c in ?? () from QGRP.amx
[14:23:22] #4 0000e320 in public OnPlayerCommandText () from QGRP.amx
[14:23:22] System backtrace:
i evo cmd:
YCMD:popravi(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(IgracLogovan == 0) return SCM(playerid,-1,""blue"(( "siva"QG Info "blue")) "siva" | "crvena"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo != POSAO_MEHANICAR) return SCM(playerid,-1,""blue"(( "siva"QG Info "blue")) "siva" | "crvena"Niste mehanicar!");
if(StavioOpremu == 0) return SCM(playerid,-1,""blue"(( "siva"QG Info "blue")) "crvena"Niste uzeli opremu za posao (/oprema)!");
if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, ""blue"(( "siva"QG Info "blue")) "siva" | "crvena"Ne mozete to dok ste u vozilu!");
new id, cena, Float:Poz;
if(sscanf(params, "ui", id, cena)) return SCM(playerid, -1, ""blue"(( "siva"UE Pomoc "blue")) "crvena"/popravi [ID/Ime] [Cena popravke]");
if(!IsPlayerConnected(id)) return SCM(playerid, -1, ""blue"(( "siva"QG Info "blue")) "siva" | "crvena"Igrac je offline!");
GetPlayerPos(id, Poz, Poz, Poz);
if(!IsPlayerInRangeOfPoint(playerid, 5.0, Poz, Poz, Poz)) return SCM(playerid, -1, ""blue"(( "siva"QG Info "blue")) "siva" | "crvena"Igrac nije blizu tebe!");
if(!IsPlayerInAnyVehicle(id)) return SCM(playerid, -1, ""blue"(( "siva"QG Info "blue")) "siva" | "crvena"Igrac mora biti u vozilu!");
if(cena > 3000) return SCM(playerid, -1, ""blue"(( "siva"QG Info "blue")) "siva" | "crvena"Cena popravke ne moze biti veca od 3000$!");
PonudioPopravku = playerid; CenaPopravke = cena;
SCMF(playerid, -1, ""blue"(( "siva"QG Info "blue")) "siva" | "HZELENA"Ponudili ste popravku vozila igracu %s za %d$.", GetName(id), cena);
SCMF(id, -1, ""blue"(( "siva"QG Info "blue")) "siva" | "HZELENA"Mehanicar %s vam je ponudio popravku vozila za %d$ | Da prihvatite /prihvati popravku!", GetName(playerid), cena);
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):Nista
