Help , REP+
#5

Quote:
Originally Posted by HY
Посмотреть сообщение
pawn Код:
if(strcmp(cmd,"/sklado",true)==0)
    {
        new Playername[24];
        GetPlayerName(playerid, Playername, sizeof(Playername));
        if(!strcmp(Playername,"Nick_Youa",true) || !strcmp(Playername, "Baba_Nacka", true))
        {
            SendClientMessage(playerid, COLOR_WHITE, "{F81414}GRESKA:{FFFFFF}You dont have key from this gate.");
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}You opened the gate.");
            MoveObject(skladkapija,-2.3000000,-268.7000100,-2.9000000, 2);
        }
   return 1;
   }
In your code, this line is wrong:
PHP код:
if(!strcmp(Playername,"Nick_Youa",true) || !strcmp(Playername"Baba_Nacka"true)) 
It should be
PHP код:
if(strcmp(Playername,"Nick_Youa",true) || strcmp(Playername"Baba_Nacka"true)) 
Reply


Messages In This Thread
Help , REP+ - by JakeHunter1 - 16.01.2015, 16:37
Re: Help , REP+ - by ATGOggy - 16.01.2015, 16:39
Re: Help , REP+ - by HY - 16.01.2015, 16:39
Re: Help , REP+ - by xVIP3Rx - 16.01.2015, 16:40
Re: Help , REP+ - by ATGOggy - 16.01.2015, 16:41

Forum Jump:


Users browsing this thread: 1 Guest(s)