Warning
#1

How i can solve this warning
Код:
C:\Users\hp\Desktop\3e server\gamemodes\GM.pwn(26365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\hp\Desktop\3e server\gamemodes\GM.pwn(26367) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
This is the script
Код:
	if(dialogid == DIALOGID0+34)
	{
		if(response)
		{
			new message[] = "\t\t\t\t\t\t _________________________________________________________________________________________________.";
			new message2[] = "\n\n 3-_________________________________________________________________________________________________";
			new string[768];
			format(string, sizeof(string),"%s %s",message,message2);
			ShowPlayerDialog(playerid, 1244, DIALOG_STYLE_MSGBOX,"Main Credits",string,"Ohkey");(This is the 2 warning)
		}
		return 1;
	}
Reply
#2

pawn Код:
f(dialogid == DIALOGID0+34)
    {
        if(response)
        {
            new message[] = "\t\t\t\t\t\t _________________________________________________________________________________________________.";
            new message2[] = "\n\n 3-_________________________________________________________________________________________________";
            new szString[768];
            format(szString, sizeof(szString),"%s %s",message,message2);
            ShowPlayerDialog(playerid, 1244, DIALOG_STYLE_MSGBOX,"Main Credits",szString,"Ohkey","");
        }
        return 1;
-Fixed
Reply
#3

thnz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)