30.03.2014, 15:02
Hi,
When I type "/load" It sends 15 times "Password loaded" message. What is the wrong ? I could'nt find it
pawn Код:
forward public loadpass(playerid, name[], value[]);
public loadpass(playerid, name[], value[])
{
INI_Int("password_hash",Parola[playerid]);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Password loaded.");
return 1;
}
CMD:load(playerid, params[])
{
new fname[64];
format(fname,sizeof(fname),"save/%s.dudb.sav",udb_encode(GetName(playerid)));
if(fexist(fname)) INI_ParseFile(fname, "loadpass", .bExtra = true, .extra = playerid);
return 1;
}