Saving Fighting Styles
#1

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);
Reply
#2

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.
Reply
#3

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?
Reply
#4

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.
Reply
#5

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
Reply
#6

I fixed it already in another way.

THanks for the answers.
Reply
#7

THanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)