SA-MP Forums Archive
saving a name variable in y_ini - 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)
+--- Thread: saving a name variable in y_ini (/showthread.php?tid=444396)



saving a name variable in y_ini - Sandiel - 16.06.2013

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+


AW: saving a name variable in y_ini - HurtLocker - 16.06.2013

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


Re: saving a name variable in y_ini - Sandiel - 16.06.2013

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 ^


AW: saving a name variable in y_ini - HurtLocker - 16.06.2013

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?