06.02.2016, 14:20
Bom eu estou criando um velocimetro e estou criando por partes, e na parte da foto do carro em textdraw que eu estou fazendo esta dando vбrios warnings e erros, talvez eu nгo esteja prestando a atenзгo no cуdigo mas nгo vejo nada errado
erros:
cуdigo:
espero que vocкs me ajudem e desde ja agradeзo.
erros:
pawn Код:
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(8) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(8) : error 035: argument type mismatch (argument 3)
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(9) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(9) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(9) : warning 202: number of arguments does not match definition
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(10) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(10) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(10) : warning 202: number of arguments does not match definition
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(11) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(11) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(11) : warning 202: number of arguments does not match definition
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(12) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(12) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(12) : warning 202: number of arguments does not match definition
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(13) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(13) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(13) : warning 202: number of arguments does not match definition
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(14) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(14) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(14) : warning 202: number of arguments does not match definition
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(15) : warning 213: tag mismatch
D:\Users\Luan\Documents\Samp 0.3.7\filterscripts\velocimetro.pwn(15) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
#include <a_samp>
new tmp =0,
PlayerText:FotoCarro;
public OnPlayerConnect(playerid)
{
FotoCarro = CreatePlayerTextDraw(320.0, 310.0, "_");
PlayerTextDrawFont(FotoCarro, TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawBackgroundColor(FotoCarro, 0x00000000);
PlayerTextDrawBoxColor(FotoCarro, 0xFFFFFFFF);
PlayerTextDrawTextSize(FotoCarro, 100.0, 100.0);
PlayerTextDrawSetPreviewVehCol(FotoCarro, 0, 0);
PlayerTextDrawSetPreviewModel(FotoCarro, 411);
PlayerTextDrawSetPreviewRot(FotoCarro, -20.0, 0.0, float(tmp), 1.0);
return true;
}
public OnPlayerDisconnect(playerid, reason)
{
PlayerTextDrawHide(playerid, FotoCarro);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
PlayerTextDrawSetPreviewModel(playerid, FotoCarro, GetVehicleModel(vid));
PlayerTextDrawShow(playerid, FotoCarro);
}
else
{
PlayerTextDrawHide(playerid, FotoCarro);
}
return 1;
}