} if(pickupid < bizcount+2) { new bizowner[25]; format(bizowner,128,"%s",BizInfo[p][owner]); if(strcmp(BizInfo[p][owner],DEFAULT_OWNER,false) == 0) { SendClientMessage(playerid, COLOR_RED, "This Biz For Sale Type, /buybiz To Buy This Biz {FF0000}:) "); format(bizowner,128,"This Biz For Sale"); } new bizmes[128]; format(bizmes,128,"~n~~n~~r~Business: ~w~%s \n~n~~b~Price: ~w~$%d \n~r~~n~~b~Profit: ~w~$%d/hr ~n~~b~Owner: ~w~%s ",BizInfo[p][name],BizInfo[p][cost],BizInfo[p][profit]*2,bizowner); GameTextForPlayer(playerid,bizmes,5000,3); return 1; }
Код:
} if(pickupid < bizcount+2) { new bizowner[25]; format(bizowner,128,"%s",BizInfo[p][owner]); if(strcmp(BizInfo[p][owner],DEFAULT_OWNER,false) == 0) { SendClientMessage(playerid, COLOR_RED, "This Biz For Sale Type, /buybiz To Buy This Biz {FF0000}:) "); format(bizowner,128,"This Biz For Sale"); } new bizmes[128]; format(bizmes,128,"~n~~n~~r~Business: ~w~%s \n~n~~b~Price: ~w~$%d \n~r~~n~~b~Profit: ~w~$%d/hr ~n~~b~Owner: ~w~%s ",BizInfo[p][name],BizInfo[p][cost],BizInfo[p][profit]*2,bizowner); GameTextForPlayer(playerid,bizmes,5000,3); return 1; } |
UpdateDynamic3DTextLabelText(bizTextInfo[bizid],0xFF0000FF,bizowner); BizInfo[bizid][ico] = CreateDynamicMapIcon(BizInfo[bizid][xpos],BizInfo[bizid][ypos],BizInfo[bizid][zpos],52,250);
Код:
UpdateDynamic3DTextLabelText(bizTextInfo[bizid],0xFF0000FF,bizowner); BizInfo[bizid][ico] = CreateDynamicMapIcon(BizInfo[bizid][xpos],BizInfo[bizid][ypos],BizInfo[bizid][zpos],52,250); This one?? |
new bizid = ClosestBiz(playerid);
DestroyDynamicMapIcon(BizInfo[bizid][ico]);
BizInfo[bizid][ico] = CreateDynamicMapIcon(BizInfo[bizid][xpos],BizInfo[bId][ypos],BizInfo[bId][zpos],36,250);
new bizid = ClosestBiz(playerid);
DestroyDynamicMapIcon(BizInfo[bizid][ico]);
BizInfo[bizid][ico] = CreateDynamicMapIcon(BizInfo[bizid][xpos],BizInfo[bId][ypos],BizInfo[bId][zpos],52,250);