[Ajuda] Comando. - 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] Comando. (
/showthread.php?tid=582114)
Comando. -
LuisFerreira - 18.07.2015
Bom eu mecho com ppc_trucking, e meu code esta assim, dentro da ppc_playercommands,
PHP код:
COMMAND:painel(playerid, params[])
{
if(GetPVarInt(playerid, "mostrarv") == 0)
{
PlayerTextDrawSetPreviewModel(playerid, Painel[7], GetVehicleModel(vehicleid));
PlayerTextDrawSetPreviewVehCol(playerid, Painel[7], AVehicleData[vehicleid][Color1], AVehicleData[vehicleid][Color2]);
PlayerTextDrawShow(playerid,Painel[7]);
SetPVarInt(playerid, "mostrarv", 1);
}
SelectTextDraw(playerid, 0xFF0000FF);
return 1;
}
Da erro assim..
PHP код:
error 017: undefined symbol "vehicleid"
e se eu colocar:
Ele acaba com o erro mais em vez de aparecer o carro, aparece a skin do CJ...Oq pode esta causando isso?
Re: Comando. -
Nenzittow - 18.07.2015
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
Re: Comando. -
LuisFerreira - 18.07.2015
Nossa que falta de ateзгo minha!!
Obrigado.