[HELP] Warning...
#1

Код:
 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
Reply
#2

Post 50132 line please
Reply
#3

Over
pawn Код:
public DisplayDialogForPlayer(playerid, dialogid)
Put
pawn Код:
forward DisplayDialogForPlayer(playerid, dialogid);
Reply
#4

Its already posted :
Here :
pawn Код:
public DisplayDialogForPlayer(playerid, dialogid)
Reply
#5

@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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)