if strlen equals AdminPW.
#1

Allright so, some time ago i did this together with Wadabak and WeeDarr, i forgot how the hell we do it, so i came here for some help.

This is my Code:

pawn Код:
dcmd_auth(playerid, params[])
{
    if (!strlen(params)) return SendClientMessage(playerid, COLOR_WHITE ,"Error: No Input.");
    new AuthMsg[128], pName[MAX_PLAYER_NAME];
    {
      SendClientMessage(playerid, COLOR_WHITE, "Auth'd = 1;");
      Admin[playerid] = 1;
      format(AuthMsg,sizeof(AuthMsg), "%s Auth'd For Admin Level.", pName);
      SendClientMessageToAll(COLOR_WHITE,AuthMsg);
    }
    return 1;
}
As you can see, i check'd if he didnt add any Input, but now, i forgot how to check if his params equals the variable called "AdminPW", can someone tell me`? it's really simple i know, but i forgotten it, AGAIN. .

Cheers, - Mikkel.
Reply


Messages In This Thread
if strlen equals AdminPW. - by shitbird - 30.05.2009, 18:49
Re: if strlen equals AdminPW. - by Correlli - 30.05.2009, 18:54
Re: if strlen equals AdminPW. - by shitbird - 30.05.2009, 19:16
Re: if strlen equals AdminPW. - by Lewwy - 30.05.2009, 19:32
Re: if strlen equals AdminPW. - by shitbird - 30.05.2009, 19:43

Forum Jump:


Users browsing this thread: 3 Guest(s)