What is wrong here
#1

PHP код:
    if(newkeys == KEY_SECONDARY_ATTACK)
    {
        if(
IsPlayerConnected(playerid))
        {
//------------------------------------------ BizzENTER
   
for(new 0sizeof(BizzInfo); i++)
            {
    if (
PlayerToPoint(3playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
                {
                    
//printf("Found House :%d",i);
                    
if(!IsACop(playerid) && == 3)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Cops only !");
                        return 
1;
                    }
                    if(
PlayerInfo[playerid][pPbiskey] == || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
                    {
                        if(
PlayerInfo[playerid][pPbiskey] != i)
                        {
                            if(
BizzInfo[i][bLocked] == 1)
                            {
                                
GameTextForPlayer(playerid"~r~Closed"50001);
                                return 
1;
                            }
                            if(
BizzInfo[i][bProducts] == 0)
                            {
                                
GameTextForPlayer(playerid"~r~Out Of Stock"50001);
                                return 
1;
                            }
                            
GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
                            
format(stringsizeof(string), "~r~-$%d~n~~w~type /exit~n~to get out"BizzInfo[i][bEntranceCost]);
                            
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
                            
ExtortionBiz(iBizzInfo[i][bEntranceCost]);
                            
BizzInfo[i][bProducts]--;
                            
OnPropUpdate();
                            
GameTextForPlayer(playeridstring50003);
                        }
                        
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
                        
SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
                        
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
                        
PlayerInfo[playerid][pLocal] = i+99;
                        new 
dood[MAX_PLAYER_NAME];
                        
GetPlayerName(playeriddoodsizeof(dood));
                        
format(stringsizeof(string), "%s payed $%d to enter biz %d"doodBizzInfo[i][bEntranceCost], i);
                        
printf("%s"string);
                        
PayLog(string);
                        
//PlayerInfo[playerid][pLocal] = i;
                    
}
                    else
                    {
                        
GameTextForPlayer(playerid"~r~You dont have the cash"50001);
                    }
                }
            }
//--------------------------------
        
}
        return 
1;
    }

Reply
#2

Anyone? ? ?
Reply
#3

well what errors/problems do you get ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)