[HELP] 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Warning... (
/showthread.php?tid=248192)
[HELP] Warning... -
anantanni - 12.04.2011
Код:
X\FILE FOLDER\ FILE.PWN(50132) : warning 235: public function lacks forward declaration (symbol "DisplayDialogForPlayer")
^--This is the warning
pawn Код:
public DisplayDialogForPlayer(playerid, dialogid)
{
switch(dialogid)
{
case 1:
{
ShowPlayerDialog(playerid,99,DIALOG_STYLE_LIST,"Gym","Normal $0\nBoxing $50,000\nKung Fu $50,000\nKneehead $50,000\nGrabkick $50,000\nElbow $50,000","Learn","Cancel");
}
}
return 1;
}
^-- This is the function
pawn Код:
if(strcmp(cmd, "/train", true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 3, 766.1840,13.3013,1000.7027))
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not at a trainer !");
return 1;
}
DisplayDialogForPlayer(playerid, 1); //Training
return 1;
}
^--This is the place where function is used.
Help !! >:O
Re: [HELP] Warning... -
BASITJALIL - 12.04.2011
Post 50132 line please
Re: [HELP] Warning... -
Alby Fire - 12.04.2011
Over
pawn Код:
public DisplayDialogForPlayer(playerid, dialogid)
Put
pawn Код:
forward DisplayDialogForPlayer(playerid, dialogid);
Re: [HELP] Warning... -
anantanni - 12.04.2011
Its already posted :
Here :
pawn Код:
public DisplayDialogForPlayer(playerid, dialogid)
Re: [HELP] Warning... -
anantanni - 12.04.2011
@Alby fire - Thanks

DD Sorry for double post ;p.
Shit ---:
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 116 seconds.