Help with /engine command.
#1

pawn Код:
CMD:engine(playerid,params[]){
    new engine,lights,alarm,doors,bonnet,boot,objective,vid;
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid,COLOR_CARROT,"You've turned your engine on.");
    }
    if
    {
    GetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid,COLOR_CARROT,"You've turned your engine off.");
    }
    return 1;
    }
and I get these
Код:
C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(590) : error 010: invalid function or declaration
C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(596) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
PLEASE WHEN YOU ANSWER EXPLAIN THE THINGS SO I CAN LEARN. thanks.
Reply


Messages In This Thread
Help with /engine command. - by Azzeto - 07.10.2011, 09:02
Re: Help with /engine command. - by Mr. Random - 07.10.2011, 09:09
Re: Help with /engine command. - by Azzeto - 07.10.2011, 09:10

Forum Jump:


Users browsing this thread: 1 Guest(s)