streamer
#3

this code
pawn Код:
COMMAND:asellhouse(playerid, params[])
{
    if(!PLVL[playerid]) return 0;
    if(GetPlayerAdmins(playerid) < 5) return 0;
    new id;
    if(sscanf(params, "d", id)) return SendClientMessage(playerid, Yellow, "Usage: /asellhouse <house id>");
    Houses[id][Locked] = 1;
    Houses[id][Owned] = 0;
    strmid(Houses[id][Owner], "None", 0, strlen("None"), 255);
    CreateDynamicPickup(Houses[id][PickupID],1273);
    CreateDynamicPickup(Houses[id][PickupID],Houses[id][EnterX], Houses[id][EnterY], Houses[id][EnterZ]);
    SaveHouses();
    new form[128];
    format(form, sizeof(form), "You have sold house ID: %d", id);
    SendClientMessage(playerid, AdminColor, form);
    return 1;
}
I get this error
pawn Код:
number of arguments does not match definition
please help?
Reply


Messages In This Thread
streamer - by xir - 12.03.2011, 17:27
Re: streamer - by Kwarde - 12.03.2011, 17:31
Re: streamer - by xir - 12.03.2011, 17:41
Re: streamer - by MadeMan - 12.03.2011, 18:03
Re: streamer - by xir - 12.03.2011, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)