Error and warning.
#4

pawn Код:
new szString[128];
new name[24]; // max name is 24 please don't use 256 for names.
new kname[24]; // 24
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(killerid, kname, sizeof(kname));
format(szString, sizeof(szString), "You were killed by %s", kname);
SendClientMessage(playerid, 0xFFFFFFAA, szString);
format(szString, sizeof(szString), "You have killed %s", name);
SendClientMessage(killerid, 0xFFFFFFAA, szString);
There.
Reply


Messages In This Thread
Error and warning. - by Misterflowers - 16.09.2012, 14:21
Re: Error and warning. - by Kirollos - 16.09.2012, 14:27
Re: Error and warning. - by Misterflowers - 16.09.2012, 14:31
Re: Error and warning. - by AtItsMax - 16.09.2012, 14:36
Re: Error and warning. - by Misterflowers - 16.09.2012, 14:39
Re: Error and warning. - by AtItsMax - 16.09.2012, 14:41
Re: Error and warning. - by Misterflowers - 16.09.2012, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)