[HELP] /Login command !
#1

I made something that if i put myself level 1338 admin to appear : %s the owner of the server has logged in , but it is bugged because the message doesn't appear and it teleports me in a village . The command gives no errors !

Command :
pawn Код:
if (strcmp(cmd, "/login", true) ==0)
    {
        new tmppass[64];
        if (PlayerLoggedIn[playerid] == 1)
        {
            SendClientMessage(playerid, COLOR_RED, "Server :  That nickname is already logged in.");
            return 1;
        }
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GREY, "USAGE: /login [password]");
            return 1;
        }
        strmid(tmppass, tmp, false, strlen(cmdtext), 32);
        LoginPlayer(playerid, tmp);
        if(PlayerInfo[playerid][pAdmin] >= 1338 && PlayerInfo[playerid][pAdmin] != 1348){
        SendClientMessageToAll(COLOR_RED, "*** %s the owner of server has logged in. ***");
        }
        return 1;
    }
What have I done wrong ?
Reply
#2

BUMP !!!!
Reply
#3

BUMP !!!
Reply
#4

Something's wrong with your LoginPlayer() function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)