07.10.2011, 09:02
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;
}
Код:
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.