Admin by Name!
#1

hi this command dosent work no errors no warnings. I want players with name to work..i put this in command

PHP код:
new nick[24];
                            
GetPlayerName(playerid,nick,24);
                            if(
strcmp(nick"Mircea"true) || strcmp(nick"ARTIST"true))
                            {
                                
SendClientMessage(playeridCOLOR_RED" Nu esti Autorizat!");
                                return 
1;
                            } 
Reply
#2

pawn Код:
if(strcmp(nick, "Mircea", true) || strcmp(nick, "ARTIST", true))
                            {
                                SendClientMessage(playerid, COLOR_RED, " Nu esti Autorizat!");
                                return 1;
                            }
this to this
pawn Код:
if(!strcmp(nick, "Mircea", true) || !strcmp(nick, "ARTIST", true))
                            {
                                SendClientMessage(playerid, COLOR_RED, " Nu esti Autorizat!");
                                return 1;
                            }
Reply
#3

PHP код:
dosent work..  says.. I tested and didn't work..
 that im not authorized == SendClientMessage(playerid, COLOR_RED, " Nu esti Autorizat!"); 
Reply
#4

pawn Код:
if(strcmp(nick, "Mircea", true) != 0 || strcmp(nick, "ARTIST", true) != 0)
                            {
                                SendClientMessage(playerid, COLOR_RED, " Nu esti Autorizat!");
                                return 1;
                            }
try this
Reply
#5

no work.
Reply
#6

pawn Код:
if(!(strcmp(nick, "Mircea", true)==0 || strcmp(nick, "ARTIST", true) == 0))
Reply
#7

works. thanks. solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)