/createhouse <address> not working
#3

Try this:
pawn Код:
CMD:createhouse(playerid, params[])
{
    new string[128], Float:x, Float:y, Float:z, houseadr[128];
    GetPlayerPos(playerid, x, y, z);
    if(sscanf(params, "s[128]", houseadr)) return SendClientMessage(playerid, -1, ""Grey"Syntax"White": /createhouse [address].");
    for(new houseid=1; houseid<MAX_HOUSES; houseid++)
    {
        HouseInfo[houseid][hID] = houseid;
        format(HouseInfo[houseid][hAddress], 30, "%s", params);
        format(HouseInfo[houseid][hOwner], 32, "None");
        HouseInfo[houseid][hOwned] = 0;
        HouseInfo[houseid][hPickUp] = CreateDynamicPickup(1273, 1, x, y, z, 0);
        format(string, sizeof(string), ""Green"ID: %d\nHouse Address: %s", houseid, HouseInfo[houseid][hAddress]);
        HouseInfo[houseid][hText] = CreateDynamic3DTextLabel(string, -1, x, y, z, 20.0);
        houseid = MAX_HOUSES;
    }
    return 1;
}
Reply


Messages In This Thread
/createhouse <address> not working - by AphexCCFC - 12.09.2013, 20:58
Re: /createhouse <address> not working - by park4bmx - 12.09.2013, 21:11
Re: /createhouse <address> not working - by FiReAlEx - 12.09.2013, 21:14
Re: /createhouse <address> not working - by AphexCCFC - 12.09.2013, 21:14
Re: /createhouse <address> not working - by FiReAlEx - 12.09.2013, 21:16
Re: /createhouse <address> not working - by AphexCCFC - 12.09.2013, 21:17
Re: /createhouse <address> not working - by FiReAlEx - 12.09.2013, 21:21
Re: /createhouse <address> not working - by AphexCCFC - 12.09.2013, 21:32
Re: /createhouse <address> not working - by Kirollos - 12.09.2013, 22:50
Re: /createhouse <address> not working - by AphexCCFC - 12.09.2013, 23:03

Forum Jump:


Users browsing this thread: 1 Guest(s)