12.03.2011, 17:41
this code
I get this error
please help?
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;
}
pawn Код:
number of arguments does not match definition