20.01.2012, 19:40
Problem was here, if(!dini_Exists(string));
PHP код:
new PlayerInfo[MAX_PLAYERS][pInfo];
forward OnPlayerRegister(playerid, password[]);
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string[128];
format(string, sizeof(string), "users/%s.ini", pName(playerid));
if(!dini_Exists(string))
{
dini_Create(string);
dini_Set(string, "Key", password);
dini_IntSet(string, "Cash", PlayerInfo[playerid][pCash]);
dini_IntSet(string, "Level", PlayerInfo[playerid][pLevel]);
dini_IntSet(string, "Account", PlayerInfo[playerid][pAccount]);
dini_IntSet(string, "AdminLevel", PlayerInfo[playerid][pAdmin]);
dini_IntSet(string, "Respect", PlayerInfo[playerid][pExp]);
dini_IntSet(string, "UpgradePoints", PlayerInfo[playerid][gPupgrade]);
dini_IntSet(string, "Kills", PlayerInfo[playerid][pKills]);
dini_FloatSet(string, "pSHealth", PlayerInfo[playerid][pSHealth]);
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
dini_FloatSet(string, "Health", PlayerInfo[playerid][pHealth]);