string error?
#1

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.
Those are my errrors

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;
    }
thats my command

and when the dialog pops its looks something likes this



How do i fix this?
Reply


Messages In This Thread
string error? - by 0utLaW_ - 29.10.2012, 08:05
Re: string error? - by JhnzRep - 29.10.2012, 08:17
Re: string error? - by 0utLaW_ - 29.10.2012, 08:24
Re: string error? - by JhnzRep - 29.10.2012, 08:37
Re: string error? - by 0utLaW_ - 29.10.2012, 08:47
Re: string error? - by JhnzRep - 29.10.2012, 08:50
Re: string error? - by 0utLaW_ - 29.10.2012, 09:14
Re: string error? - by JhnzRep - 29.10.2012, 09:16
Re: string error? - by 0utLaW_ - 29.10.2012, 09:19
Re: string error? - by jessejanssen - 29.10.2012, 09:34

Forum Jump:


Users browsing this thread: 4 Guest(s)