Whats Wrong ?
#1

Hi guys I am Making a trucking GM and want that onplayerspawn he will putonvehicle........
pawn Код:
public OnPlayerSpawn(playerid)
{
    new Car;
    Car = PlayerInfo[playerid][pCar1];
    PutPlayerInVehicle(playerid, Car, 0);
    return 1;
}
AND also OnExitingVehicle
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    PutPlayerInVehicle(playerid, vehicleid, 0);
    return 1;
}
Both are not working What's wrong I do..?
Reply
#2

First of all, you're creating a useless variable. You can just insert the array/enum data for where your "Car" integer is.

Secondly, is that value even a valid/spawned vehicle?
Reply
#3

Ye I create Array And its valid....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)