SA-MP Forums Archive
Dynamic Pickup/Label Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dynamic Pickup/Label Help (/showthread.php?tid=426118)



Dynamic Pickup/Label Help - Joshy_Elite - 27.03.2013

Im trying to create a business system for my server,but every time i try to set the exterior,i get an unknown command response,and the Pickup/3dTextLabel doesn't show either.What can i do?This is the exterior choice code:
Код:
	else if(strcmp(choice, "exterior", true) == 0)
	{
		GetPlayerPos( playerid, BizzInfo[bizid][bEntranceX], BizzInfo[bizid][bEntranceY], BizzInfo[bizid][bEntranceZ]);
		SendClientMessageEx( playerid, COLOR_WHITE, "You have changed the exterior!" );
		BizzInfo[bizid][bLocked] = 1;

		format(string, sizeof(string), "%s has edited BizID %d's Exterior.", GetPlayerNameEx(playerid), bizid);
		Log("logs/bedit.log", string);
		SaveBizz();
		if(BizzInfo[bizid][bOwned] == 1)
		{
			BizzInfo[bizid][bPickupID] = CreateDynamicPickup(1274, 23, BizzInfo[bizid][bEntranceX], BizzInfo[bizid][bEntranceY], BizzInfo[bizid][bEntranceZ], 0, -1, -1, 150.0 );
			format(string, sizeof(string), "{0000FF}[Business]{F0CC00}\nOwner: %s\n%s\nEntrance Fee: $%d\nID: %d", BizzInfo[bizid][bOwner], BizzInfo[bizid][bMessage],BizzInfo[bizid][bEntranceCost], bizid);
			BizzInfo[bizid][bTextID] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, BizzInfo[bizid][bEntranceX], BizzInfo[bizid][bEntranceY], BizzInfo[bizid][bEntranceZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1, 100.0);
			Streamer_UpdateEx(playerid, BizzInfo[bizid][bEntranceX], BizzInfo[bizid][bEntranceY], BizzInfo[bizid][bEntranceZ]);
		}
		else
		{
			BizzInfo[bizid][bPickupID] = CreateDynamicPickup(1274, 23, BizzInfo[bizid][bEntranceX], BizzInfo[bizid][bEntranceY], BizzInfo[bizid][bEntranceZ], 0, -1, -1, 150.0 );
			format(string, sizeof(string), "{0000FF}[%s For Sale]{F0CC00}\nPrice: $%d\nLevel: %d\nID: %d\nTo buy type /buybiz", businesstype,BizzInfo[bizid][bBuyPrice],BizzInfo[bizid][bLevelNeeded], bizid);
			BizzInfo[bizid][bTextID] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, BizzInfo[bizid][bEntranceX], BizzInfo[bizid][bEntranceY], BizzInfo[bizid][bEntranceZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1, 100.0);
			Streamer_UpdateEx(playerid, BizzInfo[bizid][bEntranceX], BizzInfo[bizid][bEntranceY], BizzInfo[bizid][bEntranceZ]);
		}



Re: Dynamic Pickup/Label Help - Joshman543 - 28.03.2013

Does your command return?

try adding return 1;


Re: Dynamic Pickup/Label Help - Joshy_Elite - 28.03.2013

Didn't work.