PAWNO problem

Započeo Djordjevic Aleksaa, April 28, 2020, 20:30:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning):
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Dio skripte: [ pawn ]if(vehid == adminvehicle1 || vehid == adminvehicle2 || vehid == adminvehicle3 || vehid == adminvehicle4 || vehid == adminvehicle5 || vehid == adminvehicle6)[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): //

Gde si stavio to? Jesi deklarisao vehid, adminvehicle1-5 ??

if(vehid == adminvehicle1 || vehid == adminvehicle2 || vehid == adminvehicle3 || vehid == adminvehicle4 || vehid == adminvehicle5 || vehid == adminvehicle6) sam stavio u OnPlayerStateChange ovako :

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;
Poslednja Izmena: April 28, 2020, 21:57:09 POSLE PODNE od Djordjevic Aleksaa

Kako si definisao adminvehicle1? Gde si ga upotrebio?