How would i save it as a Message and not a number
#1

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

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
Reply
#3

Huh? xd
Reply
#4

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

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

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.
Reply
#7

He means script system, not operating system...
Reply
#8

Fwrite = SeifAdmin:

This is the format

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

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

Please help me fix this
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)