SNH02 Posted June 21, 2019 Report Share Posted June 21, 2019 Salut, am o problema la comanda [/movehouse], dupa ce dau [/movehouse] nu mai apare pickup-urile de la case, am facut backup la baza de date inainte sa dau /movehouse si degeaba, nu apar iconitile inapoi! Quote Link to comment Share on other sites More sharing options...
SNH02 Posted June 21, 2019 Author Report Share Posted June 21, 2019 asta e comanda CMD:movehouse(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(PinLogged[playerid] == 0) return SCM(playerid, COLOR_BLUELIGHT, "Trebuie sa introduci codul pin mai intai folosind comanda [/pin] sau sa setezi unul folosind comanda [/setpin]."); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 7) { if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0) return SendClientMessage(playerid, COLOR_RED, "You can move house only in virtual/interior 0."); new house,Float:pX,Float:pY,Float:pZ,query[256]; if(sscanf(params, "d", house)) return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Usage: {FFFFFF}/movehouse <HouseID>"); GetPlayerPos(playerid, pX, pY, pZ); HouseInfo[house][hEntrancex] = pX; HouseInfo[house][hEntrancey] = pY; HouseInfo[house][hEntrancez] = pZ; new i = house; mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f' WHERE `ID`='%d'",HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez],house); mysql_tquery(SQL,query,"",""); format(query,sizeof(query),"You moved house %d to X:%f,Y:%f,Z:%f.",house,pX,pY,pZ); OnPropTextdrawUpdate(1, i); } else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly); } return 1; } Cum fac sa rezolv fara sa dau wipe la tot, ca deja e a 2-a oara cand am patit asta,trb sa dau wipe ca sa apara iarasi, e de la comanda asta. Quote Link to comment Share on other sites More sharing options...
SNH02 Posted June 21, 2019 Author Report Share Posted June 21, 2019 Rezolvat, t/c. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.