Create businesses help
#5

Quote:
Originally Posted by Unte99
Посмотреть сообщение
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).
The textdraw doens't load, can you help me out?
Reply


Messages In This Thread
Create businesses help - by lulo356 - 12.03.2017, 15:42
Re: Create businesses help - by Unte99 - 12.03.2017, 15:50
Re: Create businesses help - by lulo356 - 12.03.2017, 16:02
Re: Create businesses help - by Unte99 - 12.03.2017, 16:13
Re: Create businesses help - by lulo356 - 12.03.2017, 22:06

Forum Jump:


Users browsing this thread: 2 Guest(s)