08.05.2012, 17:51
Well i just upgraded to zcmd to get some more speed in my script. And i get errors on it?
I have installed it right and i do not get any "cannot read from file error"
This is the first command i get a error on, the first command under OnPlayerCommandText.
As you see it is a /engine command.
I dont know why i'm getting those errors, but maybe someone know why? Please answer.
Код:
: error 029: invalid expression, assumed zero : error 017: undefined symbol "cmd_engine" : error 029: invalid expression, assumed zero : fatal error 107: too many error messages on one line
This is the first command i get a error on, the first command under OnPlayerCommandText.
As you see it is a /engine command.
pawn Код:
CMD:engine(playerid,params[])//all errors is on this line
{
if(engine == 1)
{
GetVehicleParamsEx((GetPlayerVehicleID(playerid)),engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx((GetPlayerVehicleID(playerid)),0,lights,alarm,doors,bonnet,boot,objective);
}
else
{
GetVehicleParamsEx((GetPlayerVehicleID(playerid)),engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx((GetPlayerVehicleID(playerid)),1,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}