#1

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]);
Um joguinho pra vocкs, encontrem o erro, a dica:

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
Reply
#2

Esse Waning й por que no new.pwn ele fica tipo assim.

Comeзo do GM
pawn Код:
New Pos;
  POS = 0;
Sу um exemplo.
No caso daria esse Waningn , pois estб separado. ._.
Isso ja aconteceu comigo. Tenta botar tudo junto. Exemplo.

pawn Код:
public OnPlayerConnect
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
Sу um exemplo ._.
Mas daria o warning se a public estivesse assim :
pawn Код:
public OnPlayerConnect
{
  new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
Espero ter ajudado ._.
Reply
#3

Nгo amigo, nгo й isto e nгo estou conseguindo entender seu portuguкs.
Reply
#4

That is why in the Waning new.pwn he is so kind.

GM Home
pawn Код:
New Pos
 pos = 0;
Just one example.
Where would this Waningn because it is separate. . _.
That already happened to me. Tries to put everything together. Example.


pawn Код:
public OnPlayerConnect
{
new name [MAX_PLAYER_NAME];
GetPlayerName (playerid, Name, sizeof (Name));
Just one example. _.
But give the warning if the public were as follows:

pawn Код:
public OnPlayerConnect
{
new name [MAX_PLAYER_NAME];
 GetPlayerName (playerid, Name, sizeof (Name))
Hope that helps ._.
By : ****** Tradutor for trauction
By : [FeK]Knife
Reply
#5

The problem is here:
pawn Код:
enum posicao
{
    posicaox,
    posicaoy,
    posicaoz,
    posicaoangulo
}
Change for:
pawn Код:
enum posicao
{
    Float:posicaox,
    Float:posicaoy,
    Float:posicaoz,
    Float:posicaoangulo
}
Change dini_Int for dini_Float and dini_Set for dini_SetFloat.
Reply
#6

pqp, FLOAT, coordenadas nгo suportam int
Reply
#7

pawn Код:
dini_SetFloat
Vocк se enganou:

pawn Код:
dini_FloatSet
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)