Estou com um poblema no game mode me ajuda ai prfv.. essas linhas ai eas que estгo dando erro '
PHP код:
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,1026.1810,-797.8555,102.0391)) // NH
{
FavArmas1(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,571.7489,1935.8550,53.9442)) // CHP
{
FavArmas2(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,-2614.6152,892.0791,64.1652)) // VK
{
FavArmas3(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,373.0847,-1165.6608,78.1602)) // PDR
{
FavArmas4(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,2559.3723,189.7209,64.0554)) // MNR
{
FavArmas5(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,-1754.0334,2519.6482,98.8223)) // 18
{
FavArmas6(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,-202.8169,62.9783,3.1172)) // PL3
{
FavArmas7(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,2878.0413,2760.9746,11.5695)) // SRN
{
FavArmas8(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,-311.0206,1509.0479,75.5625,268.2393)) // DND
{
FavArmas9(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,-636.7838,2676.2654,72.3750)) // TANQUE
{
FavArmas10(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,1384.6000,-2056.9976,55.5322)) // FUBA
{
FavArmas11(playerid);
}
}
//-------------------------------------------------------------------------------------------------------------------
Essas funзхes nгo estгo no seu GM.
Код:
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(1.0, playerid,-311.0206,1509.0479,75.5625,268.2393)) // DND
{
FavArmas9(playerid);
}
}