SA-MP Forums Archive
House help ''/ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: House help ''/ (/showthread.php?tid=70060)



House help ''/ - friped93 - 22.03.2009

this code is just saying unknown command when im not at an house :S please help me ive uses PlayerToPoint at gethouseid.


Код:
dcmd_buy(playerid,params[])
{
    #pragma unused params
    new house[256], house2;
    house2 = GetHouseID(playerid);
    format(house, sizeof(house), "Roleplay/Houses/house_%d", house2);
    if(house2r == -1) return SendClientMessage(playerid, gray, "You are not in a house icon!");
    if(GetPlayerMoney(playerid)<hInfo[house2][Cost]) return SendClientMessage(playerid, gray, "Not enough money!");
    GivePlayerMoney(playerid,-hInfo[house2][Cost]);
    SendClientMessage(playerid,gray,"works");
    DestroyPickup(HousePickup[house2]);
    HousePickup[house2] = CreatePickup(1272, 23, hInfo[house2][IconX], hInfo[house2][IconY], hInfo[house2][IconZ]);
    return 1;
}



Re: House help ''/ - Rks25 - 22.03.2009

you could have used PlayerToPoint again , but now in comand?


Re: House help ''/ - friped93 - 22.03.2009

Quote:
Originally Posted by Rk_
you could have used PlayerToPoint again , but now in comand?
emm?? i just told that so ppl knowed donno if thats the problem or what do you mean ?


Re: House help ''/ - friped93 - 22.03.2009

Help?