Would somebody help me here ?
#1

Would somebody help me to complete this ?

pawn Код:
enum hInfo
{
    hOwner[24],
    hOwned,
    hID,
    hPrice,
    hInterior,
    hVirtualWorld,
    hEnterCheckpoint,
    Float:Xpos,
    Float:Ypos,
    Float:Zpos,

}
new HouseInfo[MAX_HOUSES][hInfo];

CMD:createhouse(playerid, params[])
{
    new HVW, HID, HPrice, HInt,string[128], houseid;
    new Float:x,Float:y,Float:z;
    if(sscanf(params, "iiii", HID, HInt, HVW, HPrice)) return SendClientMessage(playerid, COLOR_WHITE, "/createhouse [House ID] [interior] [Virualworld] [price]");

    HouseInfo[houseid][hID] = HID;
    HouseInfo[houseid][hInterior] = HInt;
    HouseInfo[houseid][hVirtualWorld] = HVW;
    HouseInfo[houseid][hPrice] = HPrice;

    GetPlayerPos(playerid,x,y,z);
    CreateDynamicCP(x,y,z,1.0,-1,-1,-1,50.0);

    format(string, sizeof(string), "House ID: %i\nOwner: No Owner\n Price: %i", HID, HPrice);
    CreateDynamic3DTextLabel(string,COLOR_WHITE,x,y,z,50.0);
    return 1;
}

What to put in here to make the player enter the interior that i put in /createhouse? it's something about looping all houses
pawn Код:
public OnPlayerEnterDynamicCP(playerid,checkpointid)
Reply


Messages In This Thread
Would somebody help me here ? - by AnonScripter - 19.10.2013, 01:06
Re: Would somebody help me here ? - by Jefff - 19.10.2013, 01:12
Re: Would somebody help me here ? - by AnonScripter - 19.10.2013, 01:35
Re: Would somebody help me here ? - by Pottus - 19.10.2013, 02:03
Re: Would somebody help me here ? - by AnonScripter - 19.10.2013, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)