Multipe errors
#3

Quote:
Originally Posted by Romel
Посмотреть сообщение
dude it must be like this

pawn Код:
INI_WriteInt(FilePath, "VirtualWorld", GetPlayerVirtualWorld(playerid));
change the FilePath with your file path.
More of the command:
Код:
    format(file,sizeof(file),"FHouse/Houses/%i.ini",id);//Formating the var to the selected house directory.
    INI_Open(file);//Opening the file with SII.
    INI_WriteInt("Price",HousePrice);//Writing in the place "Price" the inputted "Price" value.
    INI_WriteInt("Owned",0);//Setting to "Owned" = 0 in the ini file.
    INI_WriteInt("VirtualWorld",GetPlayerVirtualWorld(playerid));//Writing "VirtualWorld" = GetPlayerVirtualWorld(..);
    INI_WriteFloat("XPos",x);//Writing the players pos for the check point position.
    INI_WriteFloat("YPos",y);//Self explanatory.
    INI_WriteFloat("ZPos",z);//Self explanatory.
    INI_WriteString("Owner","Nonusablenameforthishouse");//Writing a string in "Owned" to "Nonusablenameforthishouse"
    INI_Save();//Saving file with SII.
    INI_Close();//Closing the file with SII.
    format(labelstring,sizeof(labelstring),"Owned: No \nPrice: %i",HousePrice);
    HInfo[id][HouseLabel] = Create3DTextLabel(labelstring,0xFF0000FF,x,y,z,25.0,GetPlayerVirtualWorld(playerid));
    HouseCount++;
    return 1;
}
As you can see, it's already supposed to save there. Thus, I doubt that has anything to do with the errors.
Reply


Messages In This Thread
Multipe errors - by davelord - 31.08.2012, 03:47
Re: Multipe errors - by JaKe Elite - 31.08.2012, 03:57
Re: Multipe errors - by davelord - 31.08.2012, 04:00
Re: Multipe errors - by davelord - 31.08.2012, 04:05
Re: Multipe errors - by TaLhA XIV - 31.08.2012, 04:19

Forum Jump:


Users browsing this thread: 1 Guest(s)