Rent Cars Problem
#1

I have this code.

pawn Code:
public IsARentBike(carid)
{
    for(new i = 0; i <MAX_VEHICLES; i++)
    {
        if(CarInfo[i][cFaction] == 20)  return 1;
    }
    return 0;
}
and this
pawn Code:
if(IsARentBike(newcar))
        {
            if (HireCar[playerid] != newcar)
            {
                format(string, sizeof(string), "~w~You can Rent this bike~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentbike~w~~n~to get out type ~r~/exit",SBizzInfo[0][sbEntranceCost]);
                TogglePlayerControllable(playerid, 0);
                GameTextForPlayer(playerid, string, 5000, 3);
            }
        }
I tried even with newcar == 30 (carid) but it doesn't work.
The cars are loaded from cfg file.
Reply
#2

its taken from Raven's roleplay...
Where did you added those codes?
Reply
#3

Are you sure? I don't use ravens. I use a massive edit of gtarp
Reply
#4

Bump.
Reply
#5

Bump.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)