OnPlayerStateChange Izbacivanje Iz Vozila


Započeo Maxx0162, Jul 17, 2018, 22:14:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Run time error 4: "Array index out of bounds"
Dio skripte: [ pawn ]public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vozilo = GetPlayerVehicleID(playerid);
    if(TaxiVozila(vozilo))
   {
      if(PlayerInfo[playerid][pClan] != 4)
      {
         RemovePlayerFromVehicle(playerid);
         SCM(playerid,-1,""MOJA"[INFO] "BELA"Ne mozete voziti ovo vozilo, niste clan Taxi Sluzbe!");
      }
   }
} [ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ] [debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 002ffac8 in ?? (0, 2, 1) from BPRP.amx
[debug] #1 00008b68 in public OnPlayerStateChange (0, 2, 1) from BPRP.amx

[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): N/A
Poslednja Izmena: Jul 17, 2018, 22:19:22 POSLE PODNE od Maxx0162