YCMD:createhouse(playerid, params[], help) {
new pret, nivel;
if(PlayerInfo[playerid][pAdmin] < 7) return SCM(playerid, COLOR_GREY, "Nu ai acces!");
if(CreateHouse[playerid] == 1) return SCM(playerid, COLOR_WHITE, "Deja creezi o casa!");
if(sscanf(params, "ii", pret, nivel)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/createhouse <price> <nivel>");
PlayerTextDrawSetString(playerid, ShopTDs[1], "Seteaza");
CreateHouse[playerid] = 1;
SInterior[playerid] = 1;
pPret[playerid] = pret;
pNivel[playerid] = nivel;
GetPlayerPos(playerid, pPos[playerid][0], pPos[playerid][1], pPos[playerid][2]);
pInteriorID[playerid] = GetPlayerInterior(playerid), pVirtual[playerid] = GetPlayerVirtualWorld(playerid);
SetInteriorCamera(playerid);
ShowShopTDs(playerid);
SetPlayerVirtualWorld(playerid, playerid+900);
return 1;
}
Deci, o creez dar nu se salveaza pickup-ul.
Totul in baza e facut corect.