Saving Fighting Styles - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Saving Fighting Styles (
/showthread.php?tid=105707)
Saving Fighting Styles -
Erkan - 30.10.2009
1. This one I tryed first it does not work
SetPlayerFightingStyle(otherplayer, FIGHT_STYLE_KNEEHEAD);
PlayerData[otherplayer][Style] = FIGHT_STYLE_KNEEHEAD;
2. in This one it does not work too
PlayerData[otherplayer][Style] = SetPlayerFightingStyle(playerid,FIGHT_STYLE_KNEEHE AD);
Re: Saving Fighting Styles -
Joe Staff - 30.10.2009
Just because you added it to the variable doesn't mean it's being saved. Look at your file writing functions in the script, you can use those as an example of how to save a variable.
Re: Saving Fighting Styles -
Erkan - 30.10.2009
Quote:
Originally Posted by Joe Staff
Just because you added it to the variable doesn't mean it's being saved. Look at your file writing functions in the script, you can use those as an example of how to save a variable.
|
I do not understand what you mean, more informations please, or just a little example?
Re: Saving Fighting Styles -
Joe Staff - 30.10.2009
A variable (like PlayerData) can only be 'saved' if it is written to a file and then read from the same file. I'm sure somewhere in your script is a function called SavePlayerInfo, SaveAccount, or something amungst those lines.
I can't really give you a proper example without having looked at your script. I urge you to try first.
Re: Saving Fighting Styles -
Sfinx_17 - 31.10.2009
go to script functions at wiki and find that function and copy paste where it says and will work i lso do same and was warking
Re: Saving Fighting Styles -
Erkan - 31.10.2009
I fixed it already in another way.
THanks for the answers.
Re: Saving Fighting Styles -
KazanTip - 01.11.2009
THanks