26.08.2017, 12:51
Quote:
Код:
CMD:claimcoupon(playerid, params[]) { new title[64], msg2[126];//Line 4684 format(title,sizeof(title),"{1B8AE4}Claim Coupon"); format(msg2,sizeof(msg2),"Type the coupon code below to\nclaim your reward:"); ShowPlayerDialog(playerid, coupon1, DIALOG_STYLE_INPUT, title, msg2, "Claim", "Cancel"); return 1; } public HouseEnter(playerid, houseid) { if(PInfo[playerid][House1] == HInfo[houseid][hHouseID]) { new msg2[64]; format(msg2,sizeof(msg2),"Welcome %s.", PlayerName(playerid)); SendClientMessage(playerid, COLOR_WHITE, msg2); }//Line 3080 if(PInfo[playerid][House2] == HInfo[houseid][hHouseID]) { new msg2[64]; format(msg2,sizeof(msg2),"Welcome home, %s.", PlayerName(playerid)); SendClientMessage(playerid, COLOR_WHITE, msg2); } InHouse[playerid] = houseid; SetPlayerInterior(playerid, HInfo[houseid][hInterior]); SetPlayerPos(playerid, HInfo[houseid][hiX],HInfo[houseid][hiY],HInfo[houseid][hiZ]); SetPlayerVirtualWorld(playerid, houseid); return 1; } I change your msg variable to msg2, Now it'll works fine. |
GM.pwn(3819) : warning 219: local variable "msg" shadows a variable at a preceding level
GM.pwn(3881) : warning 219: local variable "msg" shadows a variable at a preceding level
GM.pwn(391 : warning 219: local variable "msg" shadows a variable at a preceding level
GM.pwn(3955) : warning 219: local variable "msg" shadows a variable at a preceding level
But if i remove the ZCMDS the warnings disappear.