28.10.2009, 10:09
Hi, i'm trying to do the following
When the player gets in the car, the vehicle's id is printed into "Vehid" variable:
And then, I wanna put the guy in that "Vehid", that must be the previous player's vehicle id:
And the problem is in Vehid:
Can someone tell me, WHY! Lol. Maybe making the "Vehid" a global variable. But, IT IS xD.
When the player gets in the car, the vehicle's id is printed into "Vehid" variable:
pawn Код:
//TOP
new Vehid[MAX_VEHICLES];
//
new Vehicleid = GetPlayerVehicleID(playerid);
Vehid[Vehicleid] = Vehicleid(playerid);
pawn Код:
PutPlayerInVehicle(playerid, Vehid, 0);
Код:
error 035: argument type mismatch (argument 2)