help with SpawnPlayerAtHouse & RentFeeUp
#3

Quote:
Originally Posted by Speed
Посмотреть сообщение
pawn Код:
stock SpawnPlayerAtHouse(playerid)
{
    for(new i = 0; i < MAX_HOUSES; i++)
    {
        if(strcmp(HouseInfo[playerid][hOwner], GetName(playerid), true) || strcmp(HouseInfo[playerid][hRentUser], GetName(playerid), true))
        {
            SetPlayerPos(playerid, HouseInfo[i][hExitX], HouseInfo[i][hExitY], HouseInfo[i][hExitZ]);
            SetPlayerInterior(playerid, HouseInfo[i][hInterior]);
            SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualWorld]);
            PlayerEnteredHisHouse[playerid] = true;
            return i;
        }
    }
    return 1;
}
try this
nope, I know that would not work because you need !strcmp() or strcmp() == 0, I tried that already

YEY, FIXED!
Reply


Messages In This Thread
help with SpawnPlayerAtHouse & RentFeeUp - by System64 - 06.11.2011, 09:11
Re: help with SpawnPlayerAtHouse & RentFeeUp - by Speed - 06.11.2011, 09:17
Re: help with SpawnPlayerAtHouse & RentFeeUp - by System64 - 06.11.2011, 09:20

Forum Jump:


Users browsing this thread: 1 Guest(s)