Posts: 1,266
	Threads: 6
	Joined: Oct 2014
	
	
 
	
	
		Give me your buybiz command please:
and i gona teach you what to do first check here:
https://sampwiki.blast.hk/wiki/MapIcons
the map icon you searching for is:
36
green map icon 52 you should destroy the old map icon and make new dynamic one after buy 
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 137
	Threads: 26
	Joined: Jan 2014
	
Reputation: 
0
	 
 
	
	
		can u teach me with simple coding plz?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,266
	Threads: 6
	Joined: Oct 2014
	
	
 
	
	
		if you give your buybiz and sellbiz command will be more easy for fix and teach you how
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,266
	Threads: 6
	Joined: Oct 2014
	
	
 
	
	
		
Quote:
					Originally Posted by  RocketBoy
 
 
Код: 
	}
	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;
	}
  
 | 
 search for :
CreateDynamicMapIcon(BizInfo ....
or
CreateMapIcon(BizInfo ....
and give the full line
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,266
	Threads: 6
	Joined: Oct 2014
	
	
 
	
	
		
Quote:
					Originally Posted by  RocketBoy
 
 
Код: 
UpdateDynamic3DTextLabelText(bizTextInfo[bizid],0xFF0000FF,bizowner);
	BizInfo[bizid][ico] = CreateDynamicMapIcon(BizInfo[bizid][xpos],BizInfo[bizid][ypos],BizInfo[bizid][zpos],52,250); 
 
This one??  
 | 
 Yea
in /buybiz command add:
PHP код:
new bizid = ClosestBiz(playerid);
        DestroyDynamicMapIcon(BizInfo[bizid][ico]);
        BizInfo[bizid][ico] = CreateDynamicMapIcon(BizInfo[bizid][xpos],BizInfo[bId][ypos],BizInfo[bId][zpos],36,250); 
 in /sellbiz command add:
PHP код:
new bizid = ClosestBiz(playerid);
        DestroyDynamicMapIcon(BizInfo[bizid][ico]);
        BizInfo[bizid][ico] = CreateDynamicMapIcon(BizInfo[bizid][xpos],BizInfo[bId][ypos],BizInfo[bId][zpos],52,250); 
 and hope it work