SA-MP Forums Archive
Whats Wrong ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats Wrong ? (/showthread.php?tid=197517)



Whats Wrong ? - iRana - 09.12.2010

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..?


Re: Whats Wrong ? - __ - 09.12.2010

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?


Re: Whats Wrong ? - iRana - 09.12.2010

Ye I create Array And its valid....