Problem sa skriptom - Admin Vozila

Započeo Djordjevic Aleksaa, April 27, 2020, 23:35:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): C:\Users\Aca\Desktop\Aleksa\gamemodes\test.pwn(248) : error 012: invalid function call, not a valid address
C:\Users\Aca\Desktop\Aleksa\gamemodes\test.pwn(248) : warning 215: expression has no effect
C:\Users\Aca\Desktop\Aleksa\gamemodes\test.pwn(248) : error 001: expected token: ";", but found ")"
C:\Users\Aca\Desktop\Aleksa\gamemodes\test.pwn(248) : error 029: invalid expression, assumed zero
C:\Users\Aca\Desktop\Aleksa\gamemodes\test.pwn(248) : fatal error 107: too many error messages on one line

Dio skripte: [ pawn ]public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate PLAYER_STATE_DRIVER)
   {
      new vehid = GetPlayerVehicleID(playerid);
      if(vehid == adminvehicle1 || vehid == adminvehicle2 || vehid == adminvehicle3 || vehid == adminvehicle4 || vehid == adminvehicle5 || vehid == adminvehicle6)
      {
         if(PlayerInfo[playerid][pAdmin] <= 0)
         {
            RemovePlayerFromVehicle(playerid);
            SCM(playerid, COLOR_RED, "[SERVER] : {FFFFFF}Ne mozete voziti admin vozilo ako niste admin!"
         }
      }
   }
   return 1;
}
[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]crashdetect log[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): pise gore(nije in game problem)

Koja je linija 248 ?
====================
Respect List : Galardo | daddy. | LoOdaK | .foux |
====================

if(oldstate == PLAYER_STATE_ONFOOT && newstate PLAYER_STATE_DRIVER) je linija 248

[pawn]if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)[/pawn]