Function does not always walking
#3

pawn Код:
if(strcmp(subcmd, "appart", true) == 0)
        {
            SendClientMessage(playerid, COLOR_RPIT, "1");
            for(new houseid = 0; houseid < totalhouses; houseid++)
            {
                SendClientMessage(playerid, COLOR_RPIT, "2");
                if(IsPlayerInRangeOfPoint(playerid, 3, HouseInfo[houseid][hEntrancex], HouseInfo[houseid][hEntrancey], HouseInfo[houseid][hEntrancez]))
                {
                    SendClientMessage(playerid, COLOR_RPIT, "3");
                    if(HouseInfo[i][hAppart] == 0) // Si c'est une baraque
                    {
                        SendClientMessage(playerid, COLOR_RPIT, "Terminus");
                        HouseInfo[i][hAppart] = 1;
                        UpdateHouseLabel(houseid, false);
                        UpdateHousePickup(houseid);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_RPIT, "Terminus");
                        HouseInfo[i][hAppart] = 0;
                        UpdateHouseLabel(houseid, false);
                        UpdateHousePickup(houseid);
                    }
                }
            }
        }
My code hangs SendClientMessage equivalent to "1".

Why?
Reply


Messages In This Thread
Function does not always walking - by TheSy - 03.06.2014, 19:23
Re: Function does not always walking - by KevinPRINCE - 03.06.2014, 19:27
Re: Function does not always walking - by TheSy - 03.06.2014, 19:47
Re: Function does not always walking - by TheSy - 03.06.2014, 20:05
Re: Function does not always walking - by KevinPRINCE - 03.06.2014, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)