Command returns server unknown command.
#10

That depends on you. What do you want to do if CurrentHouse of a player is -1? Return an error for something (again, it depends on you and how you scripted it) or if you don't want to do anything, just check if it's not -1 and do your code.

An example for the last:
pawn Код:
if (HouseID != -1)
{
    for (CarSlot = 0; CarSlot < 20; CarSlot++)
        if (AHouseData[HouseID][VehicleIDs][CarSlot] != 0)
            HouseHasCars = true;
}
Reply


Messages In This Thread
Command returns server unknown command. - by thimo - 19.01.2014, 09:34
Re: Command returns server unknown command. - by Avi Raj - 19.01.2014, 09:36
Re: Command returns server unknown command. - by MatriXgaMer - 19.01.2014, 09:41
Re: Command returns server unknown command. - by thimo - 19.01.2014, 09:43
Re: Command returns server unknown command. - by thimo - 19.01.2014, 09:47
Re: Command returns server unknown command. - by Avi Raj - 19.01.2014, 09:47
Re: Command returns server unknown command. - by thimo - 19.01.2014, 14:08
Re: Command returns server unknown command. - by Konstantinos - 19.01.2014, 14:13
Re: Command returns server unknown command. - by thimo - 19.01.2014, 14:25
Re: Command returns server unknown command. - by Konstantinos - 19.01.2014, 14:30

Forum Jump:


Users browsing this thread: 5 Guest(s)