Script errors
#7

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string[128], pname2[24];
    GetPlayerName(playerid, pname2, 24);
    format(string, sizeof(string), "*** %s died.", pname2);
    SendClientMessageToAll(COLOR_RED, string);
    return 1;
}
And don't do a string of 256, its useless, max chat text is 128.
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)