Where could be a problem?
#1

Where is prob?
pawn Код:
new VehicleNames[212][64] = {
{"Landstalker"},
{"Bravura"},
{"Buffalo"},
{"Linerunner"},
...

{"Farm Plow"}, //farmtr1
{"Utility Trailer"} //utiltr1
};


        new vehicleid = GetPlayerVehicleID(playerid);
    new vehid = GetVehicleModel(vehicleid);
    new cars[64];
        new car = 400-vehid;
        format(cars,sizeof(cars),"%s",VehicleNames[car]);
        GameTextForPlayer(playerid,cars, 3000, 1);

and its not Send me a car name when I enter in car.
Reply
#2

If you told us what he problem is, maybe errors or something we could help you out.
I did see a problem.
Quote:
Originally Posted by ikey07
Посмотреть сообщение
Where is prob?
pawn Код:
new car = 400-vehid;
        format(cars,sizeof(cars),"%s",VehicleNames[car]);
        GameTextForPlayer(playerid,cars, 3000, 1);
It should be:

pawn Код:
new car = vehid-400;
Otherwise you get a negative number or 0.
But if you could give us your problem we could help.
Reply
#3

EDIT: Problem solved, Ops I needed to use that vehid-400 , damn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)