11.12.2010, 17:51
(
Последний раз редактировалось MestreKiller; 11.12.2010 в 18:51.
)
its been fixed, thanks for who helped me
dcmd_register(playerid,params[])
{
new file[128],pName[MAX_PLAYER_NAME];
if(PInfo[playerid][Regged] == 1) return SendClientMessage(playerid,red,"Info: You are already registered");
GetPlayerName(playerid,pName,sizeof(pName));
format(file,sizeof(file),"Cadmin/Users/%s.ini",pName);
if(!strlen(params)) return SendClientMessage(playerid, orange,"Info: /register [password]");
if(!dini_Exists(file))
{
dini_Create(file);
dini_Set(file,"Password",params);
dini_IntSet(file,"Level",0);
dini_IntSet(file,"Muted",0);
PInfo[playerid][Regged] = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "Does it work?");
return true;
}
return 1;
}