enum Informacoes
{
vehx,
vehy,
vehz,
angle,
}
new DadosJogador[MAX_PLAYERS][Informacoes];
CMD:estacionarveiculo(playerid, params[])
{
new currentveh;
if(DadosJogador[playerid][VEICULO_1])
{
GetVehiclePos(currentveh, vehx, vehy, vehz);
GetVehicleZAngle(currentveh, angle);
currentveh = GetPlayerVehicleID(playerid);
DOF2_SetFloat(String,"SpawnX",vehx);
DOF2_SetFloat(String,"SpawnY",vehy);
DOF2_SetFloat(String,"SpawnZ",vehz);
DOF2_SetFloat(String,"Angle",angle);
}
return true;
}
enum Informacoes
{
Float:vehx,
Float:vehy,
Float:vehz,
Float:angle
};
new DadosJogador[MAX_PLAYERS][Informacoes];
CMD:estacionarveiculo(playerid, params[])
{
new currentveh;
if(DadosJogador[playerid][VEICULO_1])
{
GetVehiclePos(currentveh, vehx, vehy, vehz);
angle = GetVehicleZAngle(currentveh);
currentveh = GetPlayerVehicleID(playerid);
DOF2_SetFloat(String,"SpawnX",vehx);
DOF2_SetFloat(String,"SpawnY",vehy);
DOF2_SetFloat(String,"SpawnZ",vehz);
DOF2_SetFloat(String,"Angle",angle);
}
return true;
}
CMD:estacionarveiculo(playerid, params[])
{
new currentveh;
if(DadosJogador[playerid][VEICULO_1])
{
currentveh = GetPlayerVehicleID(playerid);
GetVehiclePos(currentveh, vehx, vehy, vehz);
angle = GetVehicleZAngle(currentveh);
DOF2_SetFloat(String,"SpawnX",vehx);
DOF2_SetFloat(String,"SpawnY",vehy);
DOF2_SetFloat(String,"SpawnZ",vehz);
DOF2_SetFloat(String,"Angle",angle);
}
return true;
}
enum Informacoes {
Float:vehx,
Float:vehy,
Float:vehz,
Float:veha
}
new DadosJogador[MAX_PLAYERS][Informacoes];
CMD:estacionarveiculo(playerid) {
if(DadosJogador[playerid][VEICULO_1]) {
GetVehiclePos(GetPlayerVehicleID(playerid), DadosJogador[playerid][vehx], DadosJogador[playerid][vehy], DadosJogador[playerid][vehz]);
GetVehicleZAngle(GetPlayerVehicleID(playerid), DadosJogador[playerid][veha]);
DOF2_SetFloat(String, "SpawnX", DadosJogador[playerid][vehx]);
DOF2_SetFloat(String, "SpawnY", DadosJogador[playerid][vehy]);
DOF2_SetFloat(String, "SpawnZ", DadosJogador[playerid][vehz]);
DOF2_SetFloat(String, "Angle", DadosJogador[playerid][veha]);
DOF2_SaveFile();
}
return true;
}
C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12125) : error 035: argument type mismatch (argument 2) C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12126) : error 076: syntax error in the expression, or invalid function call C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12127) : warning 213: tag mismatch C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12128) : warning 213: tag mismatch C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12129) : warning 213: tag mismatch C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12130) : warning 213: tag mismatch
GetVehiclePos(GetPlayerVehicleID(playerid), vehx, vehy, vehz);
GetVehicleZAngle(GetPlayerVehicleID, veha);
DOF2_SetFloat(String, "SpawnX", vehx);
DOF2_SetFloat(String, "SpawnY", vehy);
DOF2_SetFloat(String, "SpawnZ", vehz);
DOF2_SetFloat(String, "Angle", veha);
agora estб dando esses erros
Код:
C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12125) : error 035: argument type mismatch (argument 2) C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12126) : error 076: syntax error in the expression, or invalid function call C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12127) : warning 213: tag mismatch C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12128) : warning 213: tag mismatch C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12129) : warning 213: tag mismatch C:\Users\Fabio\Desktop\samp04\gamemodes\BU.pwn(12130) : warning 213: tag mismatch PHP код:
|
PHP код:
|