11.01.2011, 15:08
pawn Код:
enum posicao
{
posicaox,
posicaoy,
posicaoz,
posicaoangulo
}
pawn Код:
new salvarposicao[MAX_PLAYERS][posicao];
pawn Код:
SetPlayerPos(playerid, salvarposicao[playerid][posicaox], salvarposicao[playerid][posicaoy], salvarposicao[playerid][posicaoz]);
SetPlayerFacingAngle(playerid, salvarposicao[playerid][posicaoangulo]);
pawn Код:
new Float: x, Float: y, Float: z, Float: angulo;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angulo);
salvarposicao[playerid][posicaox] = x;
salvarposicao[playerid][posicaoy] = y;
salvarposicao[playerid][posicaoz] = z;
salvarposicao[playerid][posicaoangulo] = angulo;
pawn Код:
salvarposicao[playerid][posicaox] = dini_Int(arquivo(playerid), "Posiзгo x");
salvarposicao[playerid][posicaoy] = dini_Int(arquivo(playerid), "Posiзгo y");
salvarposicao[playerid][posicaoz] = dini_Int(arquivo(playerid), "Posiзгo z");
pawn Код:
dini_Set(arquivo(playerid), "Posiзгo x", salvarposicao[playerid][posicaox]);
dini_Set(arquivo(playerid), "Posiзгo y", salvarposicao[playerid][posicaoy]);
dini_Set(arquivo(playerid), "Posiзгo z", salvarposicao[playerid][posicaoz]);
pawn Код:
C:\Users\Pctv\Desktop\bsc.pwn(101) : warning 213: tag mismatch
C:\Users\Pctv\Desktop\bsc.pwn(102) : warning 213: tag mismatch
C:\Users\Pctv\Desktop\bsc.pwn(103) : warning 213: tag mismatch
C:\Users\Pctv\Desktop\bsc.pwn(104) : warning 213: tag mismatch