SA-MP Forums Archive
Hel - 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: Hel (/showthread.php?tid=585143)



Hel - thaihan - 11.08.2015

me add.
PHP код:
if(newkeys & KEY_ACTION)//dang sua
        
{
        if(
IsPlayerInRangeOfPoint(playerid, 3.0, 757.3734,5.7227,1000.7012) || IsPlayerInRangeOfPoint(playerid, 3.0, 758.43,-78.0,1000.65))
        {
        if(
PlayerInfo[playerid][pDonateRank] >= 1)
        {
            
ShowPlayerDialog(playerid, FIGHTMENU, DIALOG_STYLE_LIST, "Vo thuat", "Boxing        $40000\nElbow        $40000\nKneehead    $40000\nKung-Fu    $40000\nGrabKick    $40000\nNormal", "Learn", "huy bo");
        }
        else
        {
            
ShowPlayerDialog(playerid, FIGHTMENU, DIALOG_STYLE_LIST, "Vo thuat", "Boxing        $50000\nElbow        $50000\nKneehead    $50000\nKung-Fu    $50000\nGrabKick    $50000\nNormal", "Learn", "huy bo");
        } 
help me.


Re: Hel - ZBits - 11.08.2015

Since you didn't describe your problem really well, i am guessing there are some errors since you're missing some {}'s

pawn Код:
if(newkeys & KEY_ACTION)//dang sua
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 757.3734,5.7227,1000.7012) || IsPlayerInRangeOfPoint(playerid, 3.0, 758.43,-78.0,1000.65))
    {
        if(PlayerInfo[playerid][pDonateRank] >= 1)
        {
            ShowPlayerDialog(playerid, FIGHTMENU, DIALOG_STYLE_LIST, "Vo thuat", "Boxing        $40000\nElbow        $40000\nKneehead    $40000\nKung-Fu    $40000\nGrabKick    $40000\nNormal", "Learn", "huy bo");
        }
        else
        {
        ShowPlayerDialog(playerid, FIGHTMENU, DIALOG_STYLE_LIST, "Vo thuat", "Boxing        $50000\nElbow        $50000\nKneehead    $50000\nKung-Fu    $50000\nGrabKick    $50000\nNormal", "Learn", "huy bo");
       
        }  
    }
}



Re: Hel - thaihan - 30.08.2015

thanks,