I need to make second function on this code, but got an error. Help please!
#2

Where is if?

pawn Код:
COMMAND:majak(playerid, cmdtext[])
{
    {
if(VehicleObject[1])
{


EDIT:
pawn Код:
COMMAND:majak(playerid, cmdtext[])
{
    if(IsValidObject(VehicleObject[0]))
    {
        VehicleObject[0] = CreateObject(18646,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(VehicleObject[0], 541, 0.449999,0.674999,0.375000,0.000000,0.000000,0.000000);
    }
    else //365 line
    {
        DestroyObject(VehicleObject[0]);
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)