Warning - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warning (
/showthread.php?tid=354618)
Warning -
God'Z War - 27.06.2012
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;
}
Re: Warning -
Littlehelper - 27.06.2012
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
Re: Warning -
God'Z War - 27.06.2012
thnz