#1

Код:
{
new file[128];
format(file,sizeof(file),"Mafia Wars/HQ's/Gambino.ini");
dini_IntSet(file,"hq1", 0);
HQInfo[TEAM_GAMBINO][hq1] = 321;
HQInfo[TEAM_GAMBINO][hq1] = dini_Int(file, "hq1");
}
It writes hq1=0 instead of hq1=321
Reply
#2

pawn Код:
{
new file[128];
format(file,sizeof(file),"Mafia Wars/HQ's/Gambino.ini");
dini_IntSet(file,"hq1", 0); // change the 0 here or ...
HQInfo[TEAM_GAMBINO][hq1] = 321;
HQInfo[TEAM_GAMBINO][hq1] = dini_Int(file, "hq1"); // ... delete this line
}
Reply
#3

pawn Код:
new file[128];
format(file,sizeof(file),"Mafia Wars/HQ's/Gambino.ini");
HQInfo[TEAM_GAMBINO][hq1] = 321;
dini_IntSet(file,"hq1", HQInfo[TEAM_GAMBINO][hq1]);
HQInfo[TEAM_GAMBINO][hq1] = 0;
HQInfo[TEAM_GAMBINO][hq1] = dini_Int(file, "hq1");
//HQInfo[TEAM_GAMBINO][hq1] is now 321
Reply
#4

Quote:
Originally Posted by dice7
pawn Код:
new file[128];
format(file,sizeof(file),"Mafia Wars/HQ's/Gambino.ini");
HQInfo[TEAM_GAMBINO][hq1] = 321;
dini_IntSet(file,"hq1", HQInfo[TEAM_GAMBINO][hq1]);
HQInfo[TEAM_GAMBINO][hq1] = 0;
HQInfo[TEAM_GAMBINO][hq1] = dini_Int(file, "hq1");
//HQInfo[TEAM_GAMBINO][hq1] is now 321
i tried only this:
Код:
....................
HQInfo[TEAM_GAMBINO][hq1] = 321;
dini_IntSet(file,"hq1", HQInfo[TEAM_GAMBINO][hq1]);
...................
It saved
Thanks! Now its working..
Edit:
Oh, now, i know why i needed that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)