Thread: Y_INI [HELP]
View Single Post
Old 13/01/2011, 05:04 PM   #1
park4bmx
High-roller
 
park4bmx's Avatar
 
Join Date: Dec 2009
Location: Samokov,Bulgaria
Posts: 2,364
Reputation: 240
Question Y_INI [HELP]

i am trying to save Score,Health with Y_ini & it isnt really working
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);
}

Last edited by park4bmx; 15/01/2011 at 03:17 PM.
park4bmx is offline