07.09.2009, 12:22
[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.
{
// 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.