13.01.2011, 17:04
(
Last edited by park4bmx; 15/01/2011 at 03:17 PM.
)
i am trying to save Score,Health with Y_ini & it isnt really working
This is the SCRIPT
This is the SCRIPT
pawn Code:
new gName[MAX_PLAYER_NAME];
new gScore;
new gMoney;
INI:UserFiles[](name[], value[])
{
INI_String("NAME", gName, sizeof(gName));
INI_Int("SCORE", gScore);
INI_Int("MONEY", gMoney);
return 0;
}
if(strcmp(cmd,"/test",true) == 0){
new INI:PlayerAccount = INI_Open("UserFiles.ini");
INI_WriteInt(PlayerAccount,"MONEY",5000);
INI_WriteInt(PlayerAccount,"SCORE",10);
INI_Close(PlayerAccount);
}