saving a name variable in y_ini
#1

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+
Reply
#2

enum Stats
{
Name[MAX_PLAYER_NAME]
}
edit: and then you use it normally: playerstats[playerid][Name]
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)