Trouble with array
#7

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]
Reply


Messages In This Thread
Trouble with array - by cnoopers - 10.07.2014, 21:57
Re: Trouble with array - by Vince - 10.07.2014, 22:04
Re: Trouble with array - by cnoopers - 10.07.2014, 22:08
Re: Trouble with array - by cnoopers - 11.07.2014, 12:07
Re: Trouble with array - by NewerthRoleplay - 11.07.2014, 12:14
Re: Trouble with array - by cnoopers - 11.07.2014, 12:35
Re: Trouble with array - by Jefff - 11.07.2014, 13:47
Re: Trouble with array - by cnoopers - 11.07.2014, 14:02

Forum Jump:


Users browsing this thread: 1 Guest(s)