Create Button Help
#1

I have made a few buttons, but why I do not see any button in the location that I specify?

Please.. Help me.


PHP код:

#include <yom_buttons>
/* LSPD buttons */
    
eastin CreateButton(253.44921875,110.59960938,1003.79998779,90.00000000); //object(fire_break) (1)
    
westout CreateButton(239.79492188,116.18457031,1003.87286377,90.00000000); //object(fire_break) (2)
    
westin CreateButton(239.32031250,116.27441406,1003.87286377,270.00000000); //object(fire_break) (3)
    
eastout CreateButton(253.00000000,110.59960938,1003.79998779,270.00000000); //
    
elevator CreateButton(275.83984375,120.94921875,1005.12280273,90.00000000); //object(kmb_keypad) (1)
    
cctvin CreateButton(264.55566406,115.97949219,1005.12280273,179.99450684); //object(kmb_keypad) (2)
    
cctvout CreateButton(264.55566406,115.69531250,1005.12280273,0.00000000); //object(kmb_keypad) (3)
    
lockerin CreateButton(267.21679688,112.40917969,1005.12280273,0.00000000); //object(kmb_keypad) (4)
    
lockerout CreateButton(267.21679688,112.66992188,1005.12280273,179.99450684); //object(kmb_keypad) 
    
chiefout CreateButton(232.50000000,119.38476562,1010.81384277,0.00000000); //object(sec_keypad) (2)
    
chiefin CreateButton(229.67089844,119.66992188,1010.81384277,179.99450684); //object(sec_keypad) (1)
    
roofkey CreateButton(1565.93652344,-1667.35058594,28.85165977,179.99450684); //object(sec_keypad) 
    
garagekey CreateButton(1567.14550781,-1689.62011719,6.69999981,0.00000000); //object(sec_keypad) 
     
sasdbtn1 CreateButton(2514.59179688,-1697.05761719,563.19116211,0.00000000); //SASD West
    
sasdbtn2 CreateButton(2522.82299805,-1660.15917969,563.15893555,0.00000000); //SASD East
    
sasdbtn3 CreateButton(2525.09863281,-1697.05761719,563.16284180,0.00000000); //SASD R4
    
sasdbtn4 CreateButton(2519.84375000,-1697.00659180,563.20904541,0.00000000); //SASD R5
    
sasdbtn5 CreateButton(2514.77880859,-1660.15917969,563.16925049); //SASD R6 
Reply
#2

Show "CreateButton" ?
Reply
#3

what do you means bro?
please.. help
Reply
#4

Show us the function "CreateButton"
Reply
#5

Код:
native ToggleButtonEnabled(buttonid, bool:enabled);
native ToggleButtonEnabledForPlayer(playerid, buttonid, bool:enabled);
Propably you should use this for every button that you create. And in future - read plugin documentation / native declarations, please.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)