Posts: 115
Threads: 25
Joined: Dec 2007
Reputation:
0
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);
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
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.
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
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.
Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
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
Posts: 115
Threads: 25
Joined: Dec 2007
Reputation:
0
I fixed it already in another way.
THanks for the answers.