Erro at OnPlayerText
#1

[pwn] if(PlayerInfo[playerid][pAccountMailSendText] == 1 && PlayerInfo[playerid][pAccountMailConnect] == 1 && PlayerInfo[playerid][pAccountMailSendTextLine] == 0)
{
// new nstring[256];
new idx;
new length = strlen(text);
while ((idx < length) && (text[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = text[idx];
idx++;
}
result[idx - offset] = EOS;
PlayerInfo[playerid][pAccountMailSendTextLine] = 1;
PlayerInfo[playerid][pMailSendTextLine1] = result;
return 1;
}[/pwn]

I get an Error:

must be assigned to an array

PlayerInfo[layerid][pMailSendTextLine1] = result;

Whats wrong? I want to get, what the player is writen at this time at OnPlayerText.
Reply


Messages In This Thread
Erro at OnPlayerText - by Justsmile - 07.09.2009, 12:22
Re: Erro at OnPlayerText - by dice7 - 07.09.2009, 12:25
Re: Erro at OnPlayerText - by Justsmile - 07.09.2009, 12:26
Re: Erro at OnPlayerText - by Justsmile - 07.09.2009, 12:44
Re: Erro at OnPlayerText - by dice7 - 07.09.2009, 13:00
Re: Erro at OnPlayerText - by Justsmile - 07.09.2009, 13:07
Re: Erro at OnPlayerText - by Justsmile - 07.09.2009, 13:17
Re: Erro at OnPlayerText - by Correlli - 07.09.2009, 13:28
Re: Erro at OnPlayerText - by Justsmile - 07.09.2009, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)