30.08.2011, 08:55
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);
}
}