[Ajuda] Erro /irpos e /savarpos
#5

Tentar '-'
pawn Код:
CMD:savepos(playerid)
{    
    if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Vocк nгo й Vip ou nгo tem level suficiente!");
    SendClientMessage(playerid, VERDE_AGUA, "Posiзгo salva com sucesso!");
    DOF2_SetFloat(Contas(playerid), "Pos", GetPlayerPos(playerid, x, y , z));
    DOF2_SaveFile();
   
    return 1;
}

CMD:irpos(playerid)
{  
    if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Vocк nгo й Vip ou nгo tem level suficiente!");
    SendClientMessage(playerid, VERDE_AGUA, "Vocк foi atй a posiзгo salva!");
    new arquivo[40], name[MAX_PLAYER_NAME];  
    GetPlayerName(playerid, name, 32);  
    format(arquivo, 40, "VIPS/%s.ini", name);  
    SetPlayerPos(playerid,DOF2_GetFloat(arquivo, "Pos"));//nessa linha
    return 1;
}

stock Contas(playerid)
{
    new arquivo[40], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, 32);
    format(arquivo, 40, "VIPS/%s.ini", name);
    return arquivo;
}
Reply


Messages In This Thread
Erro /irpos e /savarpos - by Jonas_Alves - 03.09.2012, 19:31
Re: Erro /irpos e /savarpos - by Douglas_prt - 03.09.2012, 19:33
Re: Erro /irpos e /savarpos - by Coreia - 03.09.2012, 19:33
Re: Erro /irpos e /savarpos - by Jonas_Alves - 03.09.2012, 19:42
Re: Erro /irpos e /savarpos - by Coreia - 03.09.2012, 21:06
Re: Erro /irpos e /savarpos - by Douglas_prt - 03.09.2012, 21:17
Re: Erro /irpos e /savarpos - by Don_Speed - 03.09.2012, 21:31
Re: Erro /irpos e /savarpos - by humildadeforever - 03.09.2012, 21:39
Re: Erro /irpos e /savarpos - by Maklister - 03.09.2012, 21:57

Forum Jump:


Users browsing this thread: 3 Guest(s)