C:\Users\igorm\Desktop\Brasil\gamemodes\BPS.pwn(10865) : warning 213: tag mismatch
CMD:carregarposicao(playerid)
{
if(PodeCarregarUltimaPosicao[playerid] == 1)
{
new string2[256];
format(string2, sizeof(string2), Pasta_Contas, PlayerName(playerid));
new Float:pPos[3];
pPos[0] = DOF2_GetFloat(string2, "uPosX");
pPos[1] = DOF2_GetFloat(string2, "uPosY");
pPos[2] = DOF2_GetFloat(string2, "uPosZ");
SendClientMessage(playerid, 0x9000f0FF, "Ultima posiзгo carregada com sucesso!");
SetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
SetPlayerInterior(playerid, DOF2_GetFloat(string2, "uPosInt")); // esta nessa linha o problema
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
PodeCarregarUltimaPosicao[playerid] = 0;
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
}
else
{
SendClientMessage(playerid, -1, "Vocк jб carregou a ultima posiзгo ou o tempo pra digitar o comando expirou !");
}
return 1;
}
SetPlayerInterior(playerid, 0); // 1 2 3 4 5 , USE NUMEROS INTEIROS
SetPlayerInterior(playerid, DOF2_GetFloat(string2, "uPosInt"));
SetPlayerInterior(playerid, DOF2_GetInt(string2, "uPosInt"));
Bom... tenta isso ai:
Код:
SetPlayerInterior(playerid, DOF2_GetFloat(string2, "uPosInt")); Код:
SetPlayerInterior(playerid, DOF2_GetInt(string2, "uPosInt")); |