Posts: 386
Threads: 10
Joined: May 2012
Reputation:
0
Hello, I'm trying to save a players name inside a variable (enum) but I forgot how, I haven't scripted in SAMP for like 8 months and I'm really rusty, I used to know how, I've used it in my house system but now I forgot how to, help would be appreciated. Rep+
Posts: 568
Threads: 28
Joined: Dec 2012
Reputation:
0
enum Stats
{
Name[MAX_PLAYER_NAME]
}
edit: and then you use it normally: playerstats[playerid][Name]
Posts: 386
Threads: 10
Joined: May 2012
Reputation:
0
No it's not that, I solved it.
I was saving the name variable/enum as an integer and not a string, thus the name would appear as a random value/integer in the file, I'm sometimes stupid ^
Posts: 568
Threads: 28
Joined: Dec 2012
Reputation:
0
Still, I use this way in case i have renamed somebody's name and to find his real .ini file. And it works. Why you say its not that?