pawn Код:
else if(!strcmp(string, "Business")){
if(strcmp(Businesses[Player[playerid][LastBiz]][bOwner], "Nobody", true) == 0)
{
print("Works 1");
if(Businesses[Player[playerid][LastBiz]][bPrice] == -1)
{
print("Works 2");
PlayerTextDrawShow(playerid,PropertyBGText[playerid]);
PlayerTextDrawShow(playerid,PropertyBusinessText[playerid]);
PlayerTextDrawSetString(playerid,PropertyTypeText[playerid],"Unavailable");
PlayerTextDrawShow(playerid,PropertyTypeText[playerid]);
PTD[playerid][tProperty] = 2;
}
else
{
print("Works 3");
PlayerTextDrawShow(playerid,PropertyBGText[playerid]);
PlayerTextDrawShow(playerid,PropertyBusinessText[playerid]);
format(string1, sizeof(string1), "%s", Businesses[Player[playerid][LastBiz]][bName]);
PlayerTextDrawSetString(playerid,PropertyTypeText[playerid],string1);
PlayerTextDrawShow(playerid,PropertyTypeText[playerid]);
format(string1, sizeof(string1), "~y~Address~n~~w~%s", Businesses[Player[playerid][LastBiz]][bAddress]);
PlayerTextDrawSetString(playerid,PropertyFirstLineText[playerid],string1);
format(string1, sizeof(string1), "~y~Price~n~~w~$%d", Businesses[Player[playerid][LastBiz]][bPrice]);
PlayerTextDrawSetString(playerid,PropertySecondLineText[playerid],string1);
PlayerTextDrawShow(playerid,PropertyFirstLineText[playerid]);
PlayerTextDrawShow(playerid,PropertySecondLineText[playerid]);
PlayerTextDrawSetString(playerid,PropertyDoorText[playerid],"~w~CMD: ~r~/buybiz");
PlayerTextDrawShow(playerid,PropertyDoorText[playerid]);
PTD[playerid][tProperty] = 2;
}
}
else
{
print("Works 4");
PlayerTextDrawShow(playerid,PropertyBGText[playerid]);
PlayerTextDrawShow(playerid,PropertyInfoText[playerid]);
format(string1, sizeof(string1), "%s", Businesses[Player[playerid][LastBiz]][bName]);
PlayerTextDrawSetString(playerid,PropertyTypeText[playerid],string1);
PlayerTextDrawShow(playerid,PropertyTypeText[playerid]);
format(string1, sizeof(string1), "~y~Address~n~~w~%s", Businesses[Player[playerid][LastBiz]][bAddress]);
PlayerTextDrawSetString(playerid,PropertyFirstLineText[playerid],string1);
format(string1, sizeof(string1), "~y~Owner~n~~w~%s", Businesses[Player[playerid][LastBiz]][bOwner]);
PlayerTextDrawSetString(playerid,PropertySecondLineText[playerid],string1);
PlayerTextDrawShow(playerid,PropertyFirstLineText[playerid]);
PlayerTextDrawShow(playerid,PropertySecondLineText[playerid]);
PlayerTextDrawShow(playerid,PropertyDoorText[playerid]);
PTD[playerid][tProperty] = 2;
}
}
}
}
Go into the server, do what you do to test if it works and then check the server log file (server_log.txt).