/changepass[SOLVED]
#4

You missed some brackets.
pawn Код:
if ( !strcmp ( cmdtext, "/changepass", true ) )
{
  if(logged[playerid] == 0)
 {
  SendClientMessage(playerid, COLOR_RED, "SERVER: You Are Not Logged In");
  return 1;
  }
   if(!strlen(tmp))
   {
     SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /changepass [password]");
     return 1;
   }
   if(logged[playerid] == 1)
   {
    dini_IntSet(udb_encode(playername), "password", udb_hash(tmp));
    format(string, sizeof(string), "You have successfully changed your password to %s. Dont forget it!", tmp);
    SendClientMessage(playerid, COLOR_GREEN, string);
}
return 1;
}
return 0;
}
Reply


Messages In This Thread
/changepass[SOLVED] - by geerdinho8 - 29.04.2010, 13:27
Re: /changepass - by geerdinho8 - 29.04.2010, 13:57
Re: /changepass - by playbox12 - 29.04.2010, 13:59
Re: /changepass - by [MWR]Blood - 29.04.2010, 14:02

Forum Jump:


Users browsing this thread: 2 Guest(s)