[Ajuda] Erro /irpos e /savarpos
#8

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Nao testei ...
pawn Код:
new Float:Pos[3];
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!");
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    DOF2_SetInt(Contas(playerid), "Posx", Pos[0]);
    DOF2_SetInt(Contas(playerid), "Posy", Pos[1]);
    DOF2_SetInt(Contas(playerid), "Posz", Pos[2]);
    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!");
    SetPlayerPos(playerid,DOF2_GetInt(Contas(playerid), "Posx"),DOF2_GetInt(Contas(playerid), "Posy"),DOF2_GetInt(Contas(playerid), "Posz"));
    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;
}
Pos tem que ser Float, Int nгo dб
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: 1 Guest(s)