Dini - register player [REP+]
#1

Lines are created correctly but without values. Why?
Код:
    new player[64];
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
    format(player,sizeof(player), ACCOUNTS ,PlayerName);
    dini_Create(player);
    dini_Set(player,"Password",key);
    dini_IntSet(player,"Money",3000);
    dini_IntSet(player,"Points",0);
    dini_IntSet(player,"ActualCar",503);
    dini_IntSet(player,"ClassC-HAVE",1);
    dini_IntSet(player,"ClassC-COLOR1",23);
    dini_IntSet(player,"ClassC-COLOR2",23);
    dini_FloatSet(player,"ClassC-HEALTH",1000.0);
    dini_IntSet(player,"ClassC-TIRES",60);
    dini_IntSet(player,"ClassB-HAVE",0);
    dini_IntSet(player,"ClassB-COLOR1",23);
    dini_IntSet(player,"ClassB-COLOR2",23);
    dini_FloatSet(player,"ClassB-HEALTH",1000.0);
    dini_IntSet(player,"ClassB-TIRES",60);
    dini_IntSet(player,"ClassA-HAVE",0);
    dini_IntSet(player,"ClassA-COLOR1",23);
    dini_IntSet(player,"ClassA-COLOR2",23);
    dini_FloatSet(player,"ClassA-HEALTH",1000.0);
    dini_IntSet(player,"ClassA-TIRES",60);
Reply
#2

anyone?
Reply
#3

bump
Reply
#4

what is the error ?
Reply
#5

I didn't understand what is the problem?
Reply
#6

got no error but after registration all lines in file got 0 value.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)