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))