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