[Pomoc] DCMD/STRCMP

Započeo Qwertz, Januar 10, 2011, 01:04:25 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Treba mi pomoc kako prebaciti komandu dcmd(register, 8, cmdtext);
                                                                dcmd(login, 5, cmdtext);

iz DCMD u STRCMP tek sam poco skriptati pa mi treba pomoc zahvalan sam u napred

i owo dcmd_register(playerid, params[])
{
  new file[128], pname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(file, sizeof(file), "\\Users\\%s.ini", pname);
  if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: /register [password]");
  if(dini_Exists(file)) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: You are already registered!");
  dini_Create(file);
  dini_IntSet(file, "hashPW", udb_hash(params));
  dini_Set(file, "password", params);
  dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][AdminLevel] = 0);
  dini_IntSet(file, "score", PlayerInfo[playerid][score] = 0);
  dini_IntSet(file, "money", PlayerInfo[playerid][cash] = 500);
  new string[128];
  format(string, 128, "[SYSTEM]: You succesfully registered the nickname %s with password %s", pname, params);
  SendClientMessage(playerid, COLOR_YELLOW, string);
  logged[playerid] = 1;
  SendClientMessage(playerid, COLOR_YELLOW, "[SYSTEM]: You have been automatically logged in!");
  return 1;}

to je sa onog tuta :D
Respect to:
Gagi_Corleone
[A]hidrokrilac
_MosT_WanteD_
Gospodin

samo prvi red mijenjas...

United Rol3Play Back Online
www.united-roleplay.com








...pozdrav za kraj...





Hvala ,ali sam skonto tek sam pre 3 dana poco skriptati pa se jedwa razumem :D
Respect to:
Gagi_Corleone
[A]hidrokrilac
_MosT_WanteD_
Gospodin

Zasto convertas komandu kad je bolja u DCMD nego u STRCMP
Aequam memento rebus in arduis servare mentem.

Znam ostawio sam u DCMD
Respect to:
Gagi_Corleone
[A]hidrokrilac
_MosT_WanteD_
Gospodin