[Ajuda] Problema - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema (
/showthread.php?tid=443930)
Problema -
Wendell - 14.06.2013
Entгo , coloquei esse Code na Public OnGameModeInit , mas quando coloco as textdraws bugam e ficam fora do lugar piscando , quando removo esse code volta ao normal , o que pode ser ?
PHP код:
for(new i; i < MAX_VEHICLES; i ++)
{
ManualVehicleEngineAndLights();
new mot, lu, alar, por, cap, porma, ob;
GetVehicleParamsEx(i, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(i, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob);
motor[i] = 0;
}
Re: Problema -
DannielCooper - 14.06.2013
Realmente nгo sei, fora dos meus conhecimentos..
Re: Problema -
Delete_ - 14.06.2013
Tenta mudar a variбvel, tipo de "i" para b, ou c.
Respuesta: Problema -
Wendell - 14.06.2013
Jб mudei a variбvel mas nгo adiantou , lembrando que coloquei esse cуdigo para quando entrar no veнculo ele permanecer desligado atй que o player digite /motor .
Re: Respuesta: Problema -
Don_Speed - 14.06.2013
Quote:
Originally Posted by Wendell
Jб mudei a variбvel mas nгo adiantou , lembrando que coloquei esse cуdigo para quando entrar no veнculo ele permanecer desligado atй que o player digite /motor .
|
Entгo ta errado!
pawn Код:
ManualVehicleEngineAndLights();// GameModeInit
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
new mot, lu, alar, por, cap, porma, ob;
GetVehicleParamsEx(vehicleid, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob);
motor[vehicleid] = 0;
}
return 1;
}
Respuesta: Re: Respuesta: Problema -
Wendell - 14.06.2013
Quote:
Originally Posted by Don_Speed
Entгo ta errado!
pawn Код:
ManualVehicleEngineAndLights();// GameModeInit public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(!ispassenger) { new mot, lu, alar, por, cap, porma, ob; GetVehicleParamsEx(vehicleid, mot, lu, alar, por, cap, porma, ob); SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob); motor[vehicleid] = 0; } return 1; }
|
Obrigado Don , resolveu meu problema .
+REP