[HELP]HouseCar
#1

Hello, I made this housecar dialog, everything works just fine except the fact that in game doesn't appear how much the car costs I mean the "Bike(1234$)" in game it only appears "Bike" and the (1234$) doesn't appear. Here is my code:

pawn Код:
if(listitem == 1)
            {
                if(playermoney >= 20000)
                {
                    if(PlayerInfo[playerid][pLevel] >= 0 && (strcmp(housecar, "Bike(1234$)", true, strlen(housecar)) == 0))
                    {
                        SendClientMessage(playerid, COLOR_YELLOW, "You have successfully bought an bike.");
                        HouseInfo[houseid][hVec] = 509;
                        GivePlayerMoney(playerid, -1234);
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_RED,"You need $1234 dollars in cash to buy an housecar.");
                    TogglePlayerControllable(playerid, 1);
                }
            }
Reply


Messages In This Thread
[HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 08:55
Re: [HELP]HouseCar - by TTJJ - 30.08.2011, 09:08
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 09:14
Re: [HELP]HouseCar - by TTJJ - 30.08.2011, 09:19
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 09:21
Re: [HELP]HouseCar - by TTJJ - 30.08.2011, 09:25
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 09:31
Re: [HELP]HouseCar - by TTJJ - 30.08.2011, 09:33
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 09:57
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)