I have a problem with /bizfee
#1

Код:
	if(strcmp(cmd, "/bizfee", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
		    new businesstype[128];
			new idxx = PlayerInfo[playerid][pPbiskey];
			if (idxx == 255)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "{30a030}[U.P.G]: {FFFFFF}Ne pare rau, dar nu detineti un Business.");
				return 1;
			}
			tmp = strtok(cmdtext, idxx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bizfee [EntranceFee]");
				return 1;
			}
			if(BizzInfo[idxx][bType] > 0)
			{
				if(BizzInfo[idxx][bType] == 1) { businesstype = "Super-Market";}
				else if(BizzInfo[idxx][bType] == 2) { businesstype = "Clothes Store";}
				else if(BizzInfo[idxx][bType] == 3) { businesstype = "Club/Disco";}
				else if(BizzInfo[idxx][bType] == 4) { businesstype = "Weapons Store";}
				else if(BizzInfo[idxx][bType] == 5) { businesstype = "Casino";}
				else if(BizzInfo[idxx][bType] == 6) { businesstype = "Restaurant";}
				else if(BizzInfo[idxx][bType] == 7) { businesstype = "AX-Weapons Store";}
				else if(BizzInfo[idxx][bType] == 8) { businesstype = "International/Local Bank";}
				else if(BizzInfo[idxx][bType] == 9) { businesstype = "Electronics Store";}
				else if(BizzInfo[idxx][bType] == 10) { businesstype = "Vehicle-Locks Store";}
				else if(BizzInfo[idxx][bType] == 11) { businesstype = "Commerical Advertising Agency";}
			}
			else
			{
				businesstype = "Not Available";
			}
			if(strvalEx(tmp) < 0 || strvalEx(tmp) > 99999)
			{
				SendClientMessage(playerid, COLOR_WHITE, "Minimum entrance is $0, Maximum entrance is $99999.");
				return 1;
			}
			format(string, sizeof(string), "{FFFF80}[Owned-Property]{B7FF00}\nProperty owned by: %s\n%s\nEntrance Fee: $%d\nBusiness ID: %d", BizzInfo[idxx][bOwner], BizzInfo[idxx][bMessage],BizzInfo[idxx][bEntranceCost], idxx);
			UpdateDynamic3DTextLabelText(business1[idxx], COLOR_DCHAT, string);
			BizzInfo[idxx][bEntranceCost] = strvalEx(tmp);
			format(string, sizeof(string), "Entrance fee set to $%d.", BizzInfo[idxx][bEntranceCost]);
			SaveBusiness(idxx);
			SendClientMessage(playerid, COLOR_WHITE, string);
		}
		return 1;
	}
Problem is:
-The text3d don't change
-The Bizfeee don't change

Appear on chat:
Entrance fee set to 0 and you type for example /bizfee 450
Reply
#2

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)