Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
1) You have your array dimensions in the wrong order. Swap them (MAX_PLAYERS <-> 256).
2) Use strcpy to copy strings.
Posts: 426
Threads: 128
Joined: Aug 2013
Reputation:
0
first, changed but still.
second, how exactly?
Posts: 2,593
Threads: 34
Joined: Dec 2007
for huge arrays with text use strpack and unpack
pawn Код:
new playermail[MAX_PLAYERS][128 char];
stock SendPlayerMail(playerid, text[])
{
if(IsPlayerConnected(playerid))
strpack(playermail[playerid],text,sizeof(playermail[]));
}
and after if you want to 'decode'
pawn Код:
new Mail[128];
strunpack(Mail,playermail[playeris]);
SendClientMessage(playerid,-1,Mail); // Mail is now your playermail[playerid]