Car Thing
#8

Quote:
Originally Posted by SaW_[VrTx]
Посмотреть сообщение
pawn Код:
forward IsDonatorcar(vehicleid);
public IsDonatorCar(vehicleid)
{
    if(vehicleid >= *put there starting car id* && vehicleid <= *put there ending car id*)
    {
        return 1;
    }
    return 0;
}
under OnPlayerEnterVehicle
pawn Код:
if (IsDonatorCar(vehicleid) && !ispassenger))
    {
        if(IsPlayerDonator[playerid] != 1) // Change to your function
        {
            ApplyAnimation(playerid, "ped", "CAR_doorlocked_LHS", 3.0, 0, 0, 0, 0, 0);
            SetVehicleParamsForPlayer(vehicleid,playerid,0,1);
            new Float:cx, Float:cy, Float:cz;
            GetPlayerPos(playerid, cx, cy, cz);
            SetPlayerPos(playerid, cx,  cy, cz);
            SendClientMessage(playerid,COLOR_GREY,"Car is reserved for donators.");
            ApplyAnimation(playerid, "ped", "CAR_doorlocked_LHS", 3.0, 0, 0, 0, 0, 0);
        }
    }

Damn errors -_-

D:


pawn Код:
\gamemodes\Server1.pwn(291) : error 012: invalid function call, not a valid address
\gamemodes\Server1.pwn(291) : warning 215: expression has no effect
\gamemodes\Server1.pwn(291) : error 001: expected token: ";", but found ")"
\gamemodes\Server1.pwn(291) : error 029: invalid expression, assumed zero
\gamemodes\Server1.pwn(291) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Error Line:

pawn Код:
if (IsDonatorCar(vehicleid) && !ispassenger));
Gah >.<
Reply


Messages In This Thread
Car Thing - by TheNotorius - 08.02.2011, 04:44
Re: Car Thing - by Haydz - 08.02.2011, 10:15
Re: Car Thing - by TheNotorius - 08.02.2011, 10:40
Re: Car Thing - by jaydon - 08.02.2011, 10:47
Re: Car Thing - by TheNotorius - 08.02.2011, 10:50
Re: Car Thing - by TheNotorius - 08.02.2011, 23:48
Re: Car Thing - by SaW_[VrTx] - 08.02.2011, 23:58
Re: Car Thing - by TheNotorius - 09.02.2011, 05:03
Re: Car Thing - by ricardo178 - 09.02.2011, 06:41
Re: Car Thing - by SaW_[VrTx] - 09.02.2011, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)