Pickup Problem
#1

hi, I want to make this code so I can control it with a button, but it makes a pickup mistake
How do I fix it?

PHP код:

    
if(newkeys == KEY_WALK//FireCela
        
{
            if(
IsPlayerInRangeOfPoint(playerid,301012.9439,-1771.2526,13.5999) ||
            
IsPlayerInRangeOfPoint(playerid,30184.0121,-107.6548,2.0234) ||
            
IsPlayerInRangeOfPoint(playerid,302324.9319,6.9137,26.5526) ||
            
IsPlayerInRangeOfPoint(playerid,302704.5645,-1281.5867,58.9453) ||
            
IsPlayerInRangeOfPoint(playerid,302428.9810,-1998.7792,13.5469) ||
            
IsPlayerInRangeOfPoint(playerid,302467.6877,-2630.0415,13.6554) ||
            
IsPlayerInRangeOfPoint(playerid,301089.3047,-923.2690,43.3906) ||
            
IsPlayerInRangeOfPoint(playerid,30480.3262,-1319.9395,15.6367) ||
            
IsPlayerInRangeOfPoint(playerid,30359.4020,166.7152,1008.3828))
            {
                for(new 
b=0MAX_BANKSb++)
                {
                    if(
pickupid == BankPickup[b])
                    {
                        if(
VRServer[playerid][IPIP] == false)
                        {
                            new 
BankString[128];
                            
VRServer[playerid][IPIP] = true;
                            
format(BankStringsizeof(BankString), "{ff0000}Banka{ffffff} Stav konta: %d$"PlayerInfo[playerid][Bank]);
                            
OtvoritPlayerDialog(playerid,BANKA_INFO,DIALOG_STYLE_LIST,BankString,"Vloћit\nVybrat","OK","Cancel");
                            
TogglePlayerControllable(playerid0);
                            return 
0;
                        }
                    }
                }
            }
        } 
Reply
#2

What mistake does it make? Tell us more about the problem, please.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)