SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 28/03/2013, 12:01 AM   #1
Joshy_Elite
Big Clucker
 
Joshy_Elite's Avatar
 
Join Date: Jun 2012
Location: New York
Posts: 60
Reputation: 1
Default Dynamic Pickup/Label Help

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:
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]);
		}
__________________

Skype:josh.devora189
Hiring a scripter,PM Me or add me on Skype ^^^^
Joshy_Elite is offline   Reply With Quote
Old 28/03/2013, 02:00 AM   #2
Joshman543
Huge Clucker
 
Join Date: Mar 2012
Location: United States
Posts: 310
Reputation: 31
Default Re: Dynamic Pickup/Label Help

Does your command return?

try adding return 1;
Joshman543 is offline   Reply With Quote
Old 29/03/2013, 12:05 AM   #3
Joshy_Elite
Big Clucker
 
Joshy_Elite's Avatar
 
Join Date: Jun 2012
Location: New York
Posts: 60
Reputation: 1
Default Re: Dynamic Pickup/Label Help

Didn't work.
__________________

Skype:josh.devora189
Hiring a scripter,PM Me or add me on Skype ^^^^
Joshy_Elite is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic LABEL script Aarab Scripting Help 7 21/02/2013 06:30 PM
Help on Dynamic 3dtext Label edgargreat Scripting Help 0 06/10/2012 06:44 AM
[help]dynamic pickup brunogysin Help Archive 5 26/02/2011 01:23 PM
Dynamic pickup help please!!! darkknight123 Help Archive 4 30/01/2011 08:30 PM
How to create a 3D label for evry pickup on the server? [NWA]Hannes Help Archive 9 12/12/2010 07:41 PM


All times are GMT. The time now is 09:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.