[Help] djson (cez accounts) loading data error
#2

There's 2 possible solutions from the top of my head.

1. Change the array size of PlayerInfo variables to what AccountGet returns.

To do this we'll need to know what's inside the CezAccounts function. Then we need to know how your PlayerInfo array and enum is declared i.e. the sizes of all the enum fields.

2. You could try using strmid as a copy function. The disadvantage to this is that some data may be truncated (cut off).

pawn Код:
// Change this line to:
PlayerInfo[playerid][pIP] = AccountGet(PlayerName, "IP");

// This line:
strmid(PlayerInfo[playerid][pIP], AccountGet(PlayerName, "IP"), 0, sizeof(PlayerInfo[playerid][pIP]));

// You will need to do this for all the equals statements.
Reply


Messages In This Thread
[Solved] djson (cez accounts) loading data error - by Ace_Menace - 10.08.2010, 11:22
Re: [Help] djson (cez accounts) loading data error - by Simon - 10.08.2010, 11:42
Re: [Help] djson (cez accounts) loading data error - by Ace_Menace - 10.08.2010, 12:27
Re: [Help] djson (cez accounts) loading data error - by Ace_Menace - 10.08.2010, 12:35
Re: [Help] djson (cez accounts) loading data error - by Kar - 10.08.2010, 14:19

Forum Jump:


Users browsing this thread: 3 Guest(s)