Little scripting question > Variables.
#1

Hi, i'm trying to do the following

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);
And then, I wanna put the guy in that "Vehid", that must be the previous player's vehicle id:

pawn Код:
PutPlayerInVehicle(playerid, Vehid, 0);
And the problem is in Vehid:
Код:
error 035: argument type mismatch (argument 2)
Can someone tell me, WHY! Lol. Maybe making the "Vehid" a global variable. But, IT IS xD.
Reply


Messages In This Thread
Little scripting question > Variables. - by JonyAvati - 28.10.2009, 10:09
Re: Little scripting question > Variables. - by Djiango - 28.10.2009, 10:38
Re: Little scripting question > Variables. - by JonyAvati - 28.10.2009, 10:46
Re: Little scripting question > Variables. - by Djiango - 28.10.2009, 10:55
Re: Little scripting question > Variables. - by MadeMan - 28.10.2009, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)