[Pomoc] Menjanje spawna hitno

Započeo {ZOKA}{BOND}, Decembar 05, 2012, 22:04:43 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

iste baca erore al jedan eror je ovde nzm sto baca erore kad ja ubacim to tvoje stosi ti mi dao brate daj mi sredi znam da nisam jedini na forum al molimte dami napravis ovaj spawn dami se spawna u enterijeru molimte

    if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//Trinitario spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, ;            <<<<<<<<<<<<<<<< a
          JBC_SetPlayerPos(playerid, 2809.1741,-1169.0574,1025.5703);
          PlayerInfo[playerid][pInt] = 8;
          return 1;
      }

Zameni to sa ovim   if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//Trinitario spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 8);           
          JBC_SetPlayerPos(playerid, 2809.1741,-1169.0574,1025.5703);
          PlayerInfo[playerid][pInt] = 8;
          return 1;
      }

brate brzo radis sad 4 baca er gle ove

     if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] ==  //Hitman spawn
       {
           SetPlayerToTeamColor(playerid);         <<<<<< Linija (4928)
         JBC_SetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
         SetPlayerInterior(playerid,0);
         PlayerInfo[playerid][pInt] = 0;
           return 1;
       }

e ovde onda

      if ((gTeam[playerid]) == 1)
       {
         SetPlayerToTeamColor(playerid);
         rand = random(sizeof(gMedPlayerSpawns));          <<<<<<<<<<<< (4988) TA LINIJA
         JBC_SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1],  gMedPlayerSpawns[rand][2]); // Warp the player         <<<< Linija  (4989)
         SetPlayerFacingAngle(playerid, 270.0);
         SetPlayerInterior(playerid,0);
         PlayerInfo[playerid][pInt] = 0;
         return 1;
      }

i na kraju

         SetPlayerToTeamColor(playerid);
         JBC_SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469);
         SetPlayerFacingAngle(playerid, 0);
         SetPlayerInterior(playerid,0);
         PlayerInfo[playerid][pInt] = 0;
         return 1;
      }
   }
   return 1; <<<<<<<<<<< ova linija  (5014)
}


a evo Eror

pwn(4928) : error 008: must be a constant expression; assumed zero
pwn(4988) : error 017: undefined symbol "rand"
pwn(4989) : error 017: undefined symbol "rand"
pwn(5014) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.