01.04.2015, 02:23
I'am Having this warning
With this code
How to fix it ? +1 Rep!
Код:
C:\Users\Windows7\Desktop\Microsoft Corporation ©\Irish Verse\gamemodes\PRP-2.pwn(60119) : warning 219: local variable "string" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Код:
TextDrawHideForPlayer(playerid, MainMenuTxtdraw[10]); TextDrawHideForPlayer(playerid, MainMenuTxtdraw[11]); ClearChatbox(playerid); new string[128]; format(string, sizeof(string), "Welcome to Irish Verse Roleplay PH, %s.", GetPlayerNameEx(playerid)); SendClientMessage(playerid, COLOR_NEWS, string); format(string, sizeof(string), "~w~Welcome~n~~y~%s", GetPlayerNameEx(playerid)); GameTextForPlayer(playerid, string, 5000, 1); SendClientMessage(playerid, COLOR_YELLOW, "If you have any further questions, please use /newb. You can also /report if you see any rule-breakers."); SendClientMessage(playerid, COLOR_GREY, "Use /usecoupon to be a Gold Donator for 7 Days."); ShowPlayerDialogEx(playerid, DIALOG_REFUND2, DIALOG_STYLE_LIST,"Irish Verse Roleplay PH - \ages","Starter Refund","Read", ""); new motdstring[128]; format(motdstring, sizeof(motdstring), "News: %s", GlobalMOTD); SendClientMessage(playerid, COLOR_WHITE, motdstring); DeletePVar(playerid, "IsFrozen"); TutorialProgress[playerid] = 0; } }