Whats wrong? -
lukas567 - 14.12.2011
Код:
if(HOLDING(KEY_JUMP))
{
if(IsPlayerInVehicle(playerid,vehicleid))
{
if(model != BMX && model != MTBIKE && model != BIKE)
{
if(!vehicleDB[vehicleid][on])
{
Engine(playerid, vehicleid, true, true);
Turningon[playerid]=1;
}
if(vehicleDB[vehicleid][on])
{
Variklis(playerid, vehicleid, false, true);
}
}
}
return 1;
}
Whats wrong?
Код:
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5219) : error 001: expected token: ";", but found "-identifier-"
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5219) : error 032: array index out of bounds (variable "VehVars")
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5232) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5232) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5234) : error 032: array index out of bounds (variable "VehVars")
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5236) : error 029: invalid expression, assumed zero
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5236) : error 017: undefined symbol "Uzveda"
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5237) : error 029: invalid expression, assumed zero
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5237) : error 017: undefined symbol "Uzveda"
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5240) : warning 219: local variable "VehVars" shadows a variable at a preceding level
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5241) : error 001: expected token: ";", but found "-identifier-"
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5241) : error 032: array index out of bounds (variable "VehVars")
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5254) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5254) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5254) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5254) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5254) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5254) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5259) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5259) : warning 202: number of arguments does not match definition
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(5265) : error 030: compound statement not closed at the end of file (started at line 5218)
Re: Whats wrong? -
Jakku - 14.12.2011
EDIT: Nevermind
Re: Whats wrong? -
lukas567 - 14.12.2011
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(402) : warning 219: local variable "X" shadows a variable at a preceding level
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(402) : warning 219: local variable "Y" shadows a variable at a preceding level
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(402) : warning 219: local variable "Z" shadows a variable at a preceding level
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(402) : warning 219: local variable "A" shadows a variable at a preceding level
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3476) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(347

: error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3484) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3486) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(348

: error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3490) : error 021: symbol already defined: "FadeColorForPlayer"
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3494) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3496) : error 021: symbol already defined: "FadeColorForPlayer"
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3500) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3502) : error 021: symbol already defined: "Stop"
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3505) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3507) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3509) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3512) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3514) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3516) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3519) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3522) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(352

: error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3530) : error 054: unmatched closing brace ("}")
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3530) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3532) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3537) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3539) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3545) : error 010: invalid function or declaration
D:\Siuntiniai\GRP4(1)\GRP4\gamemodes\new.pwn(3549) : error 010: invalid function or declaration
Re: Whats wrong? - suhrab_mujeeb - 14.12.2011
Use some cleaner code and next time specify the lines with error/warning before posting the errors. And when posting errors close them in [code][./code] tags.
pawn Код:
if(HOLDING(KEY_JUMP))
{
if(IsPlayerInVehicle(playerid,vehicleid))
{
if(model != BMX && model != MTBIKE && model != BIKE)
{
if(!vehicleDB[vehicleid][on])
{
Engine(playerid, vehicleid, true, true);
Turningon[playerid]=1;
}
else if(vehicleDB[vehicleid][on])
{
Variklis(playerid, vehicleid, false, true);
}
}
}
return 1;
}
Re: Whats wrong? -
lukas567 - 14.12.2011
Same errors
Re: Whats wrong? - suhrab_mujeeb - 14.12.2011
Can you specify the lines which have the errors by commenting with them? Or more simply can you tell us all the lines with the errors?
Re: Whats wrong? -
lukas567 - 14.12.2011
You see errors is for Variklis(playerid, vehicleid, true, true);.
Код:
stock Variklis(playerid, vehicleid, bool:ijungti, bool:info)
{
new VehVars[7]
GetVehicleParamsEx(vehicleid,VehVars[1],VehVars[2],VehVars[3],VehVars[4],VehVars[5],VehVars[6],VehVars[7]);
if(ijungti == true)
{
if(info == true)
{
GameTextForPlayer(playerid,"~r~You are trying ~n~to turn engine on...",3000, 1);
}
Varikliot[playerid] = SetTimerEx("Uzveda",3000,false,"i",playerid,vehicleid);
}
if(ijungti == false)
{
if(info == true)
{
GameTextForPlayer(playerid,"~r~Engine vent down");
}
SetVehicleParamsEx(vehicleid,false,VehVars[2],VehVars[3],VehVars[4],VehVars[5],VehVars[6],VehVars[7]);
}
Re: Whats wrong? -
lukas567 - 14.12.2011
When i delete this function from my script, errors vanishes
Re: Whats wrong? -
wildcookie007 - 14.12.2011
The error isn't even in this code, you missed a bracket.