Am si eu o problema legata de businesuri si sbusinessuri. Cand vreau sa modific tariful /bizfee, sau sa schimb numle /bizname, sau sa pun pe cineva la /extortion, nu merge. Imi apare ca, comanda functioneaza, dar nu se schimba nimic + ca apare Server: unknown comand, dar daca scriu comanda merge. Cred ca este ceva de la 3dtextdraw, ce pot face ? cam asa arata textdraw update care l-am pus sa se schimbe cand dai aceste comenzi. La case nu exista nici o problema la /setrent si merge bine. [pawn]public OnPropTextdrawUpdate(update, id) { new PropertyString[256]; if(update == 1) { if(HouseInfo[id][hOwned] == 0) { Delete3DTextLabel(HouseLabel[id]); format(PropertyString,sizeof(PropertyString),"This House is for sale! \n Price: {FFFFFF}$%d {00E800}\n Description: {FFFFFF}%s {00E800}\n Level: {FFFFFF}%d {00E800}\n To Buy This {FFFFFF}/buyhouse",HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]); HouseLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],20.0, 0, 1); } if(HouseInfo[id][hOwned] == 1) { Delete3DTextLabel(HouseLabel[id]); format(PropertyString,sizeof(PropertyString),"Owner: {FFFFFF}%s {00E800}\n Rent Price: {FFFFFF}$%d {00E800}\n Description: {FFFFFF}%s {00E800}\n To Rent Type {FFFFFF}/rentroom",HouseInfo[id][hOwner],HouseInfo[id][hRent], HouseInfo[id][hDiscription]); HouseLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],20.0, 0, 1); } } else if(update == 2) { if(BizzInfo[id][bOwned] == 0) { Delete3DTextLabel(BizzLabel[id]); format(PropertyString,sizeof(PropertyString),"This Business is for sale! \n Name: {FFFFFF}%s {00E800}\n Price: {FFFFFF}$%d {00E800}\n Level: {FFFFFF}%d {00E800}\n To Buy This, {FFFFFF}/buybiz",BizzInfo[id][bMessage],BizzInfo[id][bBuyPrice],BizzInfo[id][bLevelNeeded]); BizzLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ],20.0, 0, 1); } if(BizzInfo[id][bOwned] == 1) { Delete3DTextLabel(BizzLabel[id]); format(PropertyString,sizeof(PropertyString),"Name: {FFFFFF}%s {00E800}\n Owner: {FFFFFF}%s {00E800}\n Extortion: {FFFFFF}%s {00E800}\n Entering Fee: {FFFFFF}$%d. {00E800}\n To enter this, {FFFFFF}/enter.",BizzInfo[id][bMessage],BizzInfo[id][bOwner],BizzInfo[id][bExtortion],BizzInfo[id][bEntranceCost]); BizzLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ],20.0, 0, 1); } } else if(update == 3) { if(SBizzInfo[id][sbOwned] == 0) { Delete3DTextLabel(SBizzLabel[id]); format(PropertyString,sizeof(PropertyString),"This Sbusiness is for sale! \n Name: {FFFFFF}%s {00E800}\n Price: {FFFFFF}$%d {00E800}\n Level: {FFFFFF}%d {00E800}\n To Buy This, {FFFFFF}/buybiz",SBizzInfo[id][sbMessage],SBizzInfo[id][sbBuyPrice],SBizzInfo[id][sbLevelNeeded]); SBizzLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ],20.0, 0, 1); } if(SBizzInfo[id][sbOwned] == 1) { Delete3DTextLabel(SBizzLabel[id]); format(PropertyString,sizeof(PropertyString),"Name: {FFFFFF}%s {00E800}\n Owner: {FFFFFF}%s {00E800}\n Extortion: {FFFFFF}%s {00E800}\n Fee: {FFFFFF}$%d {00E800}\n To enter this, {FFFFFF}/enter.",SBizzInfo[id][sbMessage],SBizzInfo[id][sbOwner],SBizzInfo[id][sbExtortion],SBizzInfo[id][sbEntranceCost]); SBizzLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ],20.0, 0, 1); } } return 1; }[/pawn] si comanda /setrent arata asa: [pawn] if(strcmp(cmd, "/setrent", true) == 0) { if(IsPlayerConnected(playerid)) { new bouse = PlayerInfo[playerid][pPhousekey]; GetPlayerName(playerid, playername, sizeof(playername)); if (bouse != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrent [RentFee]"); return 1; } if(strval(tmp) < 1 || strval(tmp) > 99999) { SendClientMessage(playerid, COLOR_WHITE, "Minimum rent is $1, Maximum rent is $99999."); return 1; } HouseInfo[bouse][hRent] = strval(tmp); OnPropUpdate(); format(string, sizeof(string), "House rent set to $%d", HouseInfo[bouse][hRent]); SendClientMessage(playerid, COLOR_WHITE, string); OnPropTextdrawUpdate(1, bouse); return 1; } else { SendClientMessage(playerid, COLOR_GRAD2, " You don't own a house"); return 1; } } return 1; }[/pawn] iar comanda /bizfee arata asa: [pawn] if(strcmp(cmd, "/bizfee", true) == 0) { if(IsPlayerConnected(playerid)) { new bouse = PlayerInfo[playerid][pPbiskey]; if (bouse == 255) { SendClientMessage(playerid, COLOR_GRAD2, " You don't own a business !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bizfee [EntranceFee]"); } if(strval(tmp) < 0 || strval(tmp) > 99999) { SendClientMessage(playerid, COLOR_WHITE, "Minimum entrance is $0, Maximum entrance is $99999."); return 1; } if (bouse >= 100) { SBizzInfo[bouse-100][sbEntranceCost] = strval(tmp); format(string, sizeof(string), "Entrance fee set to $%d.", SBizzInfo[bouse-100][sbEntranceCost]); OnPropTextdrawUpdate(3, bouse); } else { BizzInfo[bouse][bEntranceCost] = strval(tmp); format(string, sizeof(string), "Entrance fee set to $%d.", BizzInfo[bouse][bEntranceCost]); OnPropTextdrawUpdate(2, bouse); } OnPropUpdate(); SendClientMessage(playerid, COLOR_WHITE, string); } return 1; }[/pawn] Ce pot face, va rog mare ajutor ?