[Pomoc]Pomicna vrata

Započeo ivanvulas, Januar 06, 2011, 21:16:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

ovako mi ide kod od vrata
new vrata;
vrata = CreateObject(2933, 2313.544921875, -1217.7839355469, 25.292713165283, 0, 0, 270);
if(strcmp(cmd,"/ho",true)==0) 8191
{
    if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8) 8193
    {
MoveObject(vrata, 2933, 2313.544921875, -1217.7839355469, 21.356351852417,7.000);
SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata Hitman Baze.");
}
else 8198
{
SendClientMessage(playerid, COLOR_RED, "Nisi Clan Hitmana.");
}
return 1; 8202
}
if(strcmp(cmd,"/hc",true)==0) 8204
{
    if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8) 8206
    {
MoveObject(vrata, 2933, 2313.544921875, -1217.7839355469, 25.292713165283,7.000);

SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata Hitman Baze."); 8210
}
else 8212
{
SendClientMessage(playerid, COLOR_GREEN, "Nisi Clan Hitmana.");
}
return 1; 8216
}


znaci meni daje 9 erorra evo ih ispod

C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(6690) : warning 217: loose indentation
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8191) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8193) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8198) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8202) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8204) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8206) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8210) : error 021: symbol already defined: "SendClientMessage"
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8212) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8216) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(26287) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(26323) : warning 203: symbol is never used: "hvrata"
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(6650) : warning 204: symbol is assigned a value that is never used: "vrata"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.


brojke pored kodova su vam errori pa milim vas da mi pomognete rijesiti tu stvar. Hvala

probaj ovako.
if(strcmp(cmd,"/ho",true)==0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8)
        {
    MoveObject(vrata, 2313.544921875, -1217.7839355469, 21.356351852417,7.000);
    SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata Hitman Baze.");
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Nisi Clan Hitmana.");
    }
    return 1;
    }
}

if(strcmp(cmd,"/hc",true)==0)
{
        if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8)
        {
    MoveObject(vrata, 2313.544921875, -1217.7839355469, 25.292713165283,7.000);
    SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata Hitman Baze.");
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREEN, "Nisi Clan Hitmana.");
    }
    return 1;
        }
}



Posjetite nas i osjetite razliku
www.balkan-city.info



193.192.59.151:7788


Game monitor nije u 100% tocan tj uvjek pokaziva manje

sada baca 12 errora
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8195) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8197) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8201) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8203) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8207) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8211) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8213) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8215) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8219) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8221) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(8225) : error 010: invalid function or declaration
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(26291) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Vulas\Desktop\New folder (2)\gf.pwn(6650) : warning 204: symbol is assigned a value that is never used: "vrata"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.

stisni CTRL+F i nadji ovo "OnPlayerPrivmsg" i izbacit ce ti nes ovako: public OnPlayerPrivmsg

i to izbrisi tj. izbrisi cijeli
Mike Marquez | House of Rave is Trippy Place ! |

ajmo reci da sam donekle sredio dajte mi jos recite zasto sada daje 2 errora undefined symbol cmd

daj errore ponovo i linije errora
Mike Marquez | House of Rave is Trippy Place ! |

if(strcmp(cmd,"/ho",true)==0)          error
   {
       if(IsPlayerConnected(playerid))
       {
           if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8)
           {
             MoveObject(vrata, 2313.544921875, -1217.7839355469, 21.356351852417,7.000);
             SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata Hitman Baze.");
             return 1;
          }
          else
          {
             SendClientMessage(playerid, COLOR_RED, "Nisi Clan Hitmana.");
          }
          return 1;
       }
   }

   if(strcmp(cmd,"/hc",true)==0)                           error
   {
        if(IsPlayerConnected(playerid))
       {
           if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8)
           {
             MoveObject(vrata, 2313.544921875, -1217.7839355469, 25.292713165283,7.000);
             SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata Hitman Baze.");
             return 1;
          }
          else
          {
             SendClientMessage(playerid, COLOR_GREEN, "Nisi Clan Hitmana.");
          }
          return 1;
        }
   }

pise undifined symbol cmd tu pored redaka di sam stavio error
Poslednja Izmena: Januar 07, 2011, 17:36:07 POSLE PODNE od ivanvulas


ljudi sad imam problem s time sto nema vrata u igri i nereagiraju komande ja pisem /ho ono se nis ne desi ???
Poslednja Izmena: Januar 07, 2011, 19:59:28 POSLE PODNE od ivanvulas