Evo ti:
CMD:asellhouse(playerid, params[]) {
if(playerVariables >= 3) {
new
houseID = strval(params);
if(!isnull(params)) {
if(houseID < 1 || houseID > MAX_HOUSES) return SendClientMessage(playerid, COLOR_GREY, "Invalid house ID.");
new
labelString;
format(houseVariables, MAX_PLAYER_NAME, "Nobody");
format(labelString, sizeof(labelString), "House %d (un-owned - /buyhouse)\nPrice: $%d\n\n(locked)", houseID, houseVariables);
DestroyDynamicPickup(houseVariables);
DestroyDynamic3DTextLabel(houseVariables);
houseVariables = CreateDynamic3DTextLabel(labelString, COLOR_YELLOW, houseVariables, houseVariables, houseVariables, 100);
houseVariables = CreateDynamicPickup(1273, 23, houseVariables, houseVariables, houseVariables);
houseVariables = 1;
format(labelString, sizeof(labelString), "You have admin-sold house ID %d.", houseID);
SendClientMessage(playerid, COLOR_WHITE, labelString);
saveHouse(houseID);
}
else {
return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/asellhouse ");
}
}
return 1;
}
I da... Ovo Å¡to si postao nije callback nego komanda. 😉