29.10.2012, 08:05
pawn Код:
C:\DOCUME~1\ADMINI~1\Desktop\woodle\GAMEMO~1\ФBА.pwn(1873) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\woodle\GAMEMO~1\ФВА.pwn(2056) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
pawn Код:
if (strcmp("/help", cmdtext, true) == 0)
{
#define HELP_DIALOG 5
new string[1028];
strcat(string, "{F3FF02}" "dhdfhfdhdfhdfhfd|\n", 1024);
strcat(string, "{F3FF02}" "dhdfhdfhdfhdfhdfhfdhfd |\n", 1024);
strcat(string, "{F3FF02}" "dfhfdhfdhfdhfdhdfhfdhfdhfdhdfhdfhfd |\n", 1024);
strcat(string, "{F3FF02}" "For Rules Type: /rules. For Commands Type: /commands |\n", 1024);
strcat(string, "{F3FF02}" "dhdfhdfhdfdfhfdhdfhdf |\n", 1024);
strcat(string, "{F3FF02}" "gdsgdsgfdghdfhfdhdfhdfhdfh|\n", 1024);
strcat(string, "{F3FF02}" "sfafsafsafsafsafsa, ||", 1024);
strcat(string, "{F3FF02}" "asfsafasfasfasfasfsafsafasfas ||", 1024);
strcat(string, "{F3FF02}" "sfsafsafsafsafsaf ||", 1024);
strcat(string, "{F3FF02}" "sdfghjkl;, ||", 1024);
strcat(string, "{F3FF02}" "adhgjgfgfgfg", 1024);
ShowPlayerDialog(playerid,DIALOG_ANIMS,DIALOG_STYLE_MSGBOX,"{FFAF00}" "Menu" "{FFAF00}" "Help", string, "Ok", "Cancel");
return 1;
}
and when the dialog pops its looks something likes this
How do i fix this?