Pomoc Admin Vozila!

Započeo Djordjevic Aleksaa, April 28, 2020, 19:24:04 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): C:\Users\Aca\Desktop\test\gamemodes\test.pwn(238) : error 029: invalid expression, assumed zero
C:\Users\Aca\Desktop\test\gamemodes\test.pwn(238) : warning 215: expression has no effect
C:\Users\Aca\Desktop\test\gamemodes\test.pwn(238) : error 001: expected token: ";", but found "]"
C:\Users\Aca\Desktop\test\gamemodes\test.pwn(238) : error 029: invalid expression, assumed zero
C:\Users\Aca\Desktop\test\gamemodes\test.pwn(238) : fatal error 107: too many error messages on one line


Dio skripte: [ pawn ]if(PlayerInfo[playerid][pAdmin] < 1)[ /pawn ]

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]

Slika/video ingame problema(obavezno ako je ingame problem): //

u toj liniji nemas error daj citavu provjeru

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU

pise mi u compile da je u toj linije problem ali evo celog dela :

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   for(new i = 0;i < 2; i++)
   {
      if(vehicleid == adminveh && !ispassenger)
      {
         if(PlayerInfo[playerid][pAdmin] < 1)
         {
            ClearPlayerAnimations(playerid);
            SCM(playerid, -1, "Ne mozete to,niste admin!");
         }
      }
   }
   return 1;
}

Citat: Djordjevic Aleksaa poslato April 28, 2020, 19:27:25 POSLE PODNE
pise mi u compile da je u toj linije problem ali evo celog dela :

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   for(new i = 0;i < 2; i++)
   {
      if(vehicleid == adminveh && !ispassenger)
      {
         if(PlayerInfo[playerid][pAdmin] < 1)
         {
            ClearPlayerAnimations(playerid);
            SCM(playerid, -1, "Ne mozete to,niste admin!");
         }
      }
   }
   return 1;
}

nisam siguran da li ce raditi, ali daj da pokusam

[pawn]
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   for(new i = 0;i < 2; i++)
   {
      if(vehicleid == adminveh && !ispassenger)
      {
         if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, -1, "Nisi admin");
         {
            ClearPlayerAnimations(playerid);
         }
      }
   }
   return 1;
}
[/pawn]


Sve deluje okej..

Daj kako si deklarisao adminveh u skripti

ako mislis na ovo new adminveh[6]; ,za define nista nisam stavljao,a problem se pokazuje na delu koji sam poslato tako da ne znam sta mislis

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

sta ti se nalazi iznad ovoga ?

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU

Citat: Djordjevic Aleksaa poslato April 28, 2020, 23:37:48 POSLE PODNE
ako mislis na ovo new adminveh[6]; ,za define nista nisam stavljao,a problem se pokazuje na delu koji sam poslato tako da ne znam sta mislis

A gde si napravio to vozilo?