03.01.2015, 13:44
Quote:
still nothing but catch the rep+.
where is the problem, maybe in another part of code? loading works, save too. |
pawn Код:
#include <a_samp>
#include <dini>
public OnFilterScriptInit()
{
new player[] = "dini/account.ini";
dini_Create(player);
dini_Set(player,"Password","123");
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);
return 1;
}
Код:
Password=123 Money=3000 Points=0 ActualCar=503 ClassC-HAVE=1 ClassC-COLOR1=23 ClassC-COLOR2=23 ClassC-HEALTH=1000.000000 ClassC-TIRES=60 ClassB-HAVE=0 ClassB-COLOR1=23 ClassB-COLOR2=23 ClassB-HEALTH=1000.000000 ClassB-TIRES=60 ClassA-HAVE=0 ClassA-COLOR1=23 ClassA-COLOR2=23 ClassA-HEALTH=1000.000000 ClassA-TIRES=60
show us where and most importantly how you defined "ACCOUNTS"