Posts: 601
Threads: 74
Joined: Sep 2009
Reputation:
0
serach for enum and look in that enum for userpin.
adjust the size there to 4
Posts: 89
Threads: 27
Joined: Jan 2011
Reputation:
0
Well 1234 is an integer so I don't need to set the size in the enum. Aswell I tested it anyways and I still got the result that it saves 123.
Posts: 89
Threads: 27
Joined: Jan 2011
Reputation:
0
I don't get it why I need to add this? I got them userpin in my pInfo enum so why should I add new userpin[MAX_PLAYERS][20]??
Posts: 239
Threads: 1
Joined: Jul 2010
Reputation:
0
18.03.2011, 15:19
(
Последний раз редактировалось JamesC; 18.03.2011 в 22:48.
)
Yes, 1234 is an integer. But you're formatting PlayerInfo[playerid][userpin] which is a string.
You need to change the size from 4 to 5. This is because after the content of the string, there is another character '/0' which denotes the end of the string. It is automatically added in for you, but it needs one cell space.