SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 14/06/2018, 05:58 PM   #11
Mike861
Big Clucker
 
Join Date: Feb 2018
Location: Serbia, Europe
Posts: 171
Reputation: 12
Default Re: Health/Armour saving issue

Quote:
Originally Posted by Exhibit View Post
INI_ParseFile should be added on OnPlayerConnect considering you are also loading the password?

Are the values saving?
I do have INI_ParseFile in OnPlayerConnect callback, but the values for both are 0.000000.
Mike861 is offline   Reply With Quote
Old 14/06/2018, 06:43 PM   #12
Mike861
Big Clucker
 
Join Date: Feb 2018
Location: Serbia, Europe
Posts: 171
Reputation: 12
Default Re: Health/Armour saving issue

I've tried this
Code:
INI_WriteFloat(File,"Health", GetPlayerHealth(playerid,Float:health));
INI_WriteFloat(File,"Armour", GetPlayerArmour(playerid,Float:armor);
and now once i login and spawn values are 1.000000
Mike861 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
Health Issue AlexuTzVs Scripting Help 0 05/09/2016 08:54 PM
infinity health variable issue HeLiOn_PrImE Scripting Help 7 24/08/2014 06:54 PM
Health issue CROSS_Hunter Scripting Help 2 25/02/2013 01:55 AM
Vehicle health issue HeLiOn_PrImE Scripting Help 4 25/09/2011 06:02 AM
Saving Player Health/Spawning With Health Despare Help Archive 21 25/11/2009 05:20 AM


All times are GMT. The time now is 10:30 AM.


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