/enter problem

Započeo Lumpri77, Jun 13, 2010, 22:32:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

evo javlja mi errore...


ovo san doda u komandu /enter:

       else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
       }
       else if (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016))
       {
       GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,1537.2346,-2178.5471,20.4731);
       }


i javlja mi ove errore:

C:\Documents and Settings\Lumpri\Desktop\â,,¢   Luka   â,,¢ server\gamemodes\lumpri.pwn(21090) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lumpri\Desktop\â,,¢   Luka   â,,¢ server\gamemodes\lumpri.pwn(21090 -- 21091) : warning 215: expression has no effect
C:\Documents and Settings\Lumpri\Desktop\â,,¢   Luka   â,,¢ server\gamemodes\lumpri.pwn(21091) : error 001: expected token: ";", but found "else"
Pawn compiler 3.2.3664                  Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Poslednja Izmena: Jun 13, 2010, 22:33:12 POSLE PODNE od [ST] SL500

Jednu si zagradu krivo stavio.
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{

Last nick: Paradox

evo stavio sam sada ovako:

else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
  {
else if (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016))
  }
GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1537.2346,-2178.5471,20.4731);
}


i javlja mi ovo:

C:\Documents and Settings\Lumpri\Desktop\â,,¢   Luka   â,,¢ server\gamemodes\lumpri.pwn(21083) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lumpri\Desktop\â,,¢   Luka   â,,¢ server\gamemodes\lumpri.pwn(21083) : warning 215: expression has no effect
C:\Documents and Settings\Lumpri\Desktop\â,,¢   Luka   â,,¢ server\gamemodes\lumpri.pwn(21083) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Lumpri\Desktop\â,,¢   Luka   â,,¢ server\gamemodes\lumpri.pwn(21084) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
       {
           else if (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016))
               {
              GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1);
              SetPlayerInterior(playerid,0);
               SetPlayerPos(playerid,1537.2346,-2178.5471,20.4731);
              }
       }


EDIT: Ma baa krivo sam ovu zagradu postavio...daj sad probaj xD

Poslednja Izmena: Jun 13, 2010, 23:13:23 POSLE PODNE od [ST]ivex → ♫
Vikend je policija nas hvata,
vikend je ode cijela plata,
oko nas stvari ukradene,
sve smo dali na planove i sheme..
||||:=:=:=:=:=:=::=:=:=:=:=:=:=:THE IVEX:=:=:=:=:=:=:=:=:=::=:=:=:=:=:=::=:|||| 


PS: Ne saljite mi nikakve pm jer neodgovaram na njih! Ako trebate nes pitajte ove pr0 skriptere pa neka vam kazu!Hvala !


Probaj ovako:

       else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 && if (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016))
       {
           GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1);
           SetPlayerInterior(playerid,0);
           SetPlayerPos(playerid,1537.2346,-2178.5471,20.4731);
       }


Ili:

       else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
       {
           if (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016)
           {
               GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1);
               SetPlayerInterior(playerid,0);
               SetPlayerPos(playerid,1537.2346,-2178.5471,20.4731);
            }
       }
Poslednja Izmena: Jun 13, 2010, 23:40:25 POSLE PODNE od Slick_Crack
Mysterious roleplay

ja mislim da treba ovako:

        else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) 
        { 
            if (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016) 
            { 
                GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1); 
                SetPlayerInterior(playerid,0); 
                SetPlayerPos(playerid,1537.2346,-2178.5471,20.4731); 
            } 
        } 

staviosam ovoko:

else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)  
{  
   if (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016)  
   {  
       GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1);  
       SetPlayerInterior(playerid,0);  
       SetPlayerPos(playerid,1537.2346,-2178.5471,20.4731);  
   }  
}  


ali javlja mi 1 error:

C:\Documents and Settings\Lumpri\Desktop\â,,¢   Luka   â,,¢ server\gamemodes\lumpri.pwn(21046) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



red u kojem je error:

Citatif (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016)
           {
               GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1);
Poslednja Izmena: Jun 14, 2010, 08:05:02 PRE PODNE od [ST] SL500


else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) 

    if (PlayerToPoint(3.0, playerid,1536.0903,-2177.0745,21.8016))
    { 
        GameTextForPlayer(playerid, "~w~Put na krov baze", 5000, 1); 
        SetPlayerInterior(playerid,0); 
        SetPlayerPos(playerid,1537.2346,-2178.5471,20.4731); 
    } 


Ovako treba ic'. Zaboravio si jednu zagradu.
Poslednja Izmena: Jun 14, 2010, 08:20:39 PRE PODNE od Johnâ„¢

Last nick: Paradox