Fix error
#6

pawn Код:
dcmd_renthouse(playerid,params[]) { // This needs to be intergrated with your players .ini account
    #pragma unused params
    if(IsPlayerConnected(playerid)){
        for(new h = 0; h <= MAX_HOUSES; h++){
          if(PlayerToPoint(PTP_RADIUS, playerid, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ])){
              if(HouseInfo[h][hName] == "Name") return SendClientMessage(playerid, COLOR_WHITE, ".:: [ERROR]: No one has bought this house so you cannot rent from here.");
            if(PlayerInfo[playerid][pHouse] != -1) return SendClientMessage(playerid, COLOR_WHITE, ".:: [ERROR]: You are allready renting a house. Use /unrenthouse to stop renting there.");
              PlayerInfo[playerid][pHouse] = h;
              SendFormattedMessage(playerid, COLOR_WHITE, ".:: [HOUSE]: You are now renting from %s.", HouseInfo[h][hName]);
            } } }
    return true;
}
Reply


Messages In This Thread
Fix error - by gecatahh - 02.06.2010, 17:36
Re: Fix error - by gecatahh - 03.06.2010, 16:36
Re: Fix error - by whitedragon - 03.06.2010, 16:38
Re: Fix error - by gecatahh - 03.06.2010, 16:39
Re: Fix error - by whitedragon - 03.06.2010, 16:41
Re: Fix error - by gecatahh - 03.06.2010, 16:47
Re: Fix error - by dice7 - 03.06.2010, 16:49
Re: Fix error - by gecatahh - 03.06.2010, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)