Script errors
#6

Thanks, but now I get the same errors but a different line.

(8 : error 001: expected token: "-identifier-", but found "["
(89) : error 029: invalid expression, assumed zero
(89) : error 035: argument type mismatch (argument 2)
(89) : error 020: invalid symbol name ""
(89) : fatal error 107: too many error messages on one line

Lines 88 and 89:

Код:
    new cmd[256], tmp[256], tmp2[256], idx, string[256], playername[24];
    GetPlayerName(playerid, playername, sizeof(playername));
For better understanding, the whole thing:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new name[MAX_PLAYER_NAME+1];
    new cmd[256], tmp[256], tmp2[256], idx, string[256], playername[24];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "*** %s died.", name);
    SendClientMessageToAll(COLOR_RED, string);
    return 1;
}
Reply


Messages In This Thread
Script errors - by WickyFramboise - 23.03.2010, 17:14
Re: Script errors - by Zimon95 - 23.03.2010, 17:16
Re: Script errors - by WickyFramboise - 23.03.2010, 17:19
Re: Script errors - by Zimon95 - 23.03.2010, 17:22
Re: Script errors - by Fedee! - 23.03.2010, 17:31
Re: Script errors - by WickyFramboise - 23.03.2010, 18:00
Re: Script errors - by Fedee! - 23.03.2010, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)