Posts: 188
Threads: 56
Joined: Aug 2013
Reputation:
0
Olб,
Bom, eu preciso de um sistema de "demage" para o veнculo parar de funcionar quando quebrar, uns 300 de vida, alguйm sabe onde achar?
dou 1+ r
Posts: 188
Threads: 56
Joined: Aug 2013
Reputation:
0
error 010: invalid function or declaration
error 001: expected token: "-identifier-", but found "*"
Posts: 3,239
Threads: 76
Joined: Mar 2012
Reputation:
0
Como vocк colocou o cуdigo pode mostrar ?
Posts: 188
Threads: 56
Joined: Aug 2013
Reputation:
0
foi esse aqui
forward carhealthcheck();
public carhealthcheck()
{
new Float:vhp;
for(new vehicleid; vehicleid<MAX_VEHICLES;vehicleid++)
{
if(GetVehicleModel(vehicleid)==0)continue;
GetVehicleHealth(vehicleid,vhp);
if(vhp<250.0)
{
SetVehicleHealth(vehicleid,250)
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid,0,lights,alarm,doors, bonnet,boot,objective);
}
}
}
coloquei onde fica as forward e public
Posts: 5,314
Threads: 12
Joined: Aug 2010
Reputation:
0
Isso tб certo, mas no pawno vocк deve ter um * que nгo devia existir...
Posts: 188
Threads: 56
Joined: Aug 2013
Reputation:
0
Serб que nгo tem uma FS de damage, eu tenho uma FS do tipo, mas deixa bugado as vezes, sabe "congelado"