Quote:
We can't do anything if we don't see the script.
|
Here you have the piece of script we're talking about
:
Код:
if(strcmp(cmd, "/register", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /register (password)");
}
else
{
if (!dini_Exists(udb_encode(playername)))
{
dini_Create(udb_encode(playername));
dini_IntSet(udb_encode(playername), "password", udb_hash(tmp));
dini_IntSet(udb_encode(playername), "adminlevel", 0);
dini_IntSet(udb_encode(playername), "money", 0);
dini_IntSet(udb_encode(playername), "license", 1);
dini_IntSet(udb_encode(playername), "health", 100);
dini_IntSet(udb_encode(playername), "bankmoney", 100);
dini_IntSet(udb_encode(playername), "fightstyle", 0);
dini_IntSet(udb_encode(playername), "carlocks", 0);
dini_IntSet(udb_encode(playername), "cigarets", 0);
dini_IntSet(udb_encode(playername), "beer", 0);
dini_IntSet(udb_encode(playername), "sprunk", 0);
dini_IntSet(udb_encode(playername), "rope", 0);
format(string, sizeof(string), "Account %s was created. You can now log in with the password: %s.", playername, tmp);
SendClientMessage(playerid, COLOR_YELLOW, string);
TextDrawHideForPlayer(playerid, register);
TextDrawShowForPlayer(playerid, login);
return 1;
}
else
{
format(string, sizeof(string), "%s already registered.", playername,tmp);
SendClientMessage(playerid, COLOR_RED, string);
}
}
return 1;
}
Quote:
Insert Quote
What does it say?
|
Thats the weirdest thing: it don't say unkown command or something, but it says nothing!