SA-MP Forums Archive
How would i save it as a Message and not a number - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How would i save it as a Message and not a number (/showthread.php?tid=126825)



How would i save it as a Message and not a number - Torran - 10.02.2010

Normally i would save such things as AdminLevel, Cash and Tutorial has numbers = 1 & 2
But i want to set the gender, So how would i do it like this, This is a example and brings 2 errors:

AccountInfo[playerid][Gender] = Male;


Re: How would i save it as a Message and not a number - Universal - 10.02.2010

Edit your array to:

Код:
AccountInfo[playerid][Gender][7];
And, when you want to set the gender, do:

Код:
format(AccountInfo[playerid][Gender],sizeof(AccountInfo[playerid][Gender]),"Male");
Very simple


Re: How would i save it as a Message and not a number - Torran - 10.02.2010

Huh? xd


Re: How would i save it as a Message and not a number - Universal - 10.02.2010

Quote:
Originally Posted by Torran
Huh? xd
What part u missunderstand ?


Re: How would i save it as a Message and not a number - Torran - 10.02.2010

All of it, The system im using dosent work like that


Re: How would i save it as a Message and not a number - Universal - 10.02.2010

Quote:
Originally Posted by Torran
All of it, The system im using dosent work like that
What are you using then ? If your using not Windows, you should specif it.


Re: How would i save it as a Message and not a number - Rzzr - 10.02.2010

He means script system, not operating system...


Re: How would i save it as a Message and not a number - Torran - 10.02.2010

Fwrite = SeifAdmin:

This is the format

pawn Код:
format(file, sizeof file, "Gender: %s\n ",AccountInfo[playerid][Gender]);
                    {   fwrite(account, file); }



Re: How would i save it as a Message and not a number - Universal - 10.02.2010

Quote:
Originally Posted by [ST
Рυтўнвαѕ ]
He means script system not, operating system...
lol


Re: How would i save it as a Message and not a number - Torran - 10.02.2010

Please help me fix this