Some king of error
#1

Hi i was making vehicle control sistem and i get error.I dont know how can i fix it please help

Код:
C:\Modelis\gamemodes\band7.pwn(11699) : error 076: syntax error in the expression, or invalid function call
Код:
	if(Engine[vehicleid] == true)
				{
					if(!Engine[vehicleid]) return SendClientMessage(playerid,WHITE,"Variklis jau yra {E31919}isjungtas!");
					TogglePlayerControllable(playerid, true);
					SendClientMessage(playerid,WHITE,"Variklis {E31919}isjungtas!");
					GetVehicleParamsEx(vehicleid,engine,light,alarm,doors,bonnet,boot,objective);
					SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,light,alarm,doors,bonnet,boot,objective);
		 	11699       KillTimer(Degalai);
					Engine[vehicleid] = false;
				}
				else if(Engine[vehicleid] == false)
				{
					new Float:health;
					GetVehicleHealth(vehicleid, health);
					if(health >350)
					{
						if(Engine[vehicleid]) return SendClientMessage(playerid,WHITE,"Variklis jau yra {2F991A}ijungtas!");
						TogglePlayerControllable(playerid, true);
						SendClientMessage(playerid,WHITE,"Variklis {2F991A}ijungtas!");
						diegalai[playerid]=SetTimerEx("Degalai",1000*60*5,true,"i",playerid);
						GetVehicleParamsEx(vehicleid,engine,light,alarm,doors,bonnet,boot,objective);
						SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,light,alarm,doors,bonnet,boot,objective);
						Engine[vehicleid] = true;
					}
Reply
#2

Where's your SetTimer ?, show me the line.
Reply
#3

diegalai[playerid]=SetTimerEx("Degalai",1000*60*5,true,"i",playerid) ; i what system is this
Reply
#4

PHP код:
diegalai SetTimerEx("Degalai"1000true"i"playerid); 
PHP код:
KillTimer(degalai); 
Reply
#5

Its dont help now i shut rename my timer
Reply
#6

If it's an array it should be this:

pawn Код:
KillTimer(diegalai[playerid]);
So you're pointing to the cell in the array which contains that playerid's timer id.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)