Error and warning.
#1

When I am placing this on the GM:
Quote:

new name[256];
new kname[256];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(killerid, kname, sizeof(kname));
new string[128];
format(string, sizeof(string), "You were killed by %s", kname);
SendClientMessage(name, 0xFFFFFFAA, string);
format(string, sizeof(string), "You have killed %s", name);
SendClientMessage(killerid, 0xFFFFFFAA, string);

I got this warning and error:
Quote:

error 035: argument type mismatch (argument 1)
warning 219: local variable "string" shadows a variable at a preceding level

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)