16.09.2012, 14:21
When I am placing this on the GM:
I got this warning and error:
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); |
Quote:
error 035: argument type mismatch (argument 1) warning 219: local variable "string" shadows a variable at a preceding level |