Jump to content

Problema [/createhouse]


Yukkiv2
 Share

Recommended Posts

De fiecare data cand dau /createhouse imi ramane asa si nu pot sa imi dau seama ce are
gamemode-ul este burnedimage.thumb.png.51adae3840a3197820176244ecd42256.png 

YCMD:createhouse(playerid, params[], help) {
	new pret, nivel;
	if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_GREY, "Nu ai acces!");
	if(CreateHouse[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Deja creezi o casa!");
	if(sscanf(params, "ii", pret, nivel)) return SendClientMessage(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;
}	

 

Link to comment
Share on other sites

8 hours ago, Jahen said:

Exemplifică problema, în momentul în care selectezi SETEAZĂ nu se întâmplă nimic?

Nu se intampla nimic, m-am uitat si in baza de date sa vad daca se salveaza fara interior dar nu se salveaza nimic iar jocul ramane asa. Nu mai merge nimic trebuie sa dau /q si sa intru iar

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...