SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/02/2020, 09:34 AM   #1
Krisovija
Little Clucker
 
Join Date: Jan 2015
Posts: 2
Reputation: 0
Default SavePlayer

I have problem with saving player data, i using latest YSI 5.0, when i saveplayer every data is on one line, and its not sort
Like
Code:
ADozvola=0Dozvola=0Semena
not
Code:
ADozvola=0
Dozvola=0
Semena
My saveplayer

Code:
stock SavePlayer(playerid)
{
    if(IgracUlogovan[playerid] == 1)
    {
        new INI:File = INI_Open(Korisnici(playerid));
        INI_SetTag(File, "data");
        INI_WriteInt(File, "Semena", PI[playerid][pSemena]);
        INI_WriteInt(File, "Dozvola", PI[playerid][pDozvola]);
        INI_WriteInt(File, "ADozvola", PI[playerid][pADozvola]);
        INI_Close(File);
    }
    return 1;
}
Krisovija is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SavePlayer reset all variable EAGLE Scripting Help 4 13/11/2019 10:43 AM
SavePlayer Mysql danielpalade Scripting Help 5 07/01/2016 09:20 AM
MySQL SavePlayer problem McGuiness Scripting Help 2 03/10/2014 07:02 PM
Mysql SavePlayer(playerid) error! Georgelopez1 Help Archive 8 01/05/2011 05:27 PM


All times are GMT. The time now is 01:17 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.