SA-MP Forums Archive
[PEDIDO] Mudar sistema de status - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PEDIDO] Mudar sistema de status (/showthread.php?tid=319926)



[PEDIDO] Mudar sistema de status - thaw_ps - 20.02.2012

Queria uma ajuda ai de vocкs ai para mudar o meu sistema de stauts tipo queria que acrescentar mais coisa nele, ele vem com Matou,morreu,logou e dinheiro
Dai queria colocar ration, vida, colete sу que nгo estou conseguindo alйm disso queria saber como faz para mostrar ele de lado tipo assim, em vez de ser

Matou
Morreu
logou
dinheiro

fosse
Matou morreu dinheiro
Ration Vida colete

tipo desse jeito, se der para me ajudar muito obrigado, a nгo й que eu seja vadio e nгo queria fazer e que eu to pedindo pq nгo sei msm e ja tentei fazer mais nгo ta dando certo sу que vou continuar tentado se alguйm poder me ajudar Obrigado.

O comando й esse aqui

Код:
  new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[128];
    format(String, sizeof(String),"Status De %s",Nome);
    SendClientMessage(playerid, 0xFFFF00AA,String);
    format(String, sizeof(String),"Dinheiro: %d", GetPlayerMoney(playerid));
    SendClientMessage(playerid, 0x1E90FFAA,String);
    format(String, sizeof(String),"Matou: %d",Matou[playerid]);
    SendClientMessage(playerid, 0x1E90FFAA,String);
    format(String, sizeof(String),"Morreu: %d",Morreu[playerid]);
    SendClientMessage(playerid, 0x1E90FFAA,String);
    format(String, sizeof(String),"Vocк Jб Logou %d Vezes Neste Servidor",Logou[playerid]);
    SendClientMessage(playerid, 0x1E90FFAA,String);
	return 1;
}



Re: [PEDIDO] Mudar sistema de status - paulor - 20.02.2012

pawn Код:
new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[128];
    format(String, sizeof(String),"Status De %s Dinheiro: %d Matou: %d Morreu: %d",Nome,GetPlayerMoney(playerid),Matou[playerid],Morreu[playerid]);
    SendClientMessage(playerid, 0xFFFF00AA,String);
    format(String, sizeof(String),"Vocк Jб Logou %d Vezes Neste Servidor",Logou[playerid]);
    SendClientMessage(playerid, 0x1E90FFAA,String);
    format(String, sizeof(String),"Vida %f Colete %f",GetPlayerHealth[playerid], GetPlayerArmour[playerid]);
    SendClientMessage(playerid, 0x1E90FFAA,String);
    return 1;
}
soh nгo coloquei ration pois nгo entendi.


Re: [PEDIDO] Mudar sistema de status - thaw_ps - 20.02.2012

Cara deu 4 erro olha sу

Код:
C:\Documents and Settings\Thaw\Desktop\0.3d\gamemodes\GW.pwn(483) : error 028: invalid subscript (not an array or too many subscripts): "GetPlayerHealth"
C:\Documents and Settings\Thaw\Desktop\0.3d\gamemodes\GW.pwn(483) : warning 215: expression has no effect
C:\Documents and Settings\Thaw\Desktop\0.3d\gamemodes\GW.pwn(483) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Thaw\Desktop\0.3d\gamemodes\GW.pwn(483) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Thaw\Desktop\0.3d\gamemodes\GW.pwn(483) : fatal error 107: too many error messages on one line
A linha й essa

Код:
 format(String, sizeof(String),"Vida %f Colete %f",GetPlayerHealth[playerid], GetPlayerArmour[playerid]);
Se pode ajudar


Re: [PEDIDO] Mudar sistema de status - paulor - 20.02.2012

pawn Код:
new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[128], Float:health, Float:armour;
    GetPlayerHealth(playerid,health);
    GetPlayerArmour(playerid,armour);
    format(String, sizeof(String),"Status De %s Dinheiro: %d Matou: %d Morreu: %d",Nome,GetPlayerMoney(playerid),Matou[playerid],Morreu[playerid]);
    SendClientMessage(playerid, 0xFFFF00AA,String);
    format(String, sizeof(String),"Vocк Jб Logou %d Vezes Neste Servidor",Logou[playerid]);
    SendClientMessage(playerid, 0x1E90FFAA,String);
    format(String, sizeof(String),"Vida %f Colete %f",health, armour);
    SendClientMessage(playerid, 0x1E90FFAA,String);
    return 1;
}
Corrigido.


Re: [PEDIDO] Mudar sistema de status - thaw_ps - 20.02.2012

Agora deu certo Muito obrigado


Re: [PEDIDO] Mudar sistema de status - paulor - 20.02.2012

nds.


Re: [PEDIDO] Mudar sistema de status - zbt - 21.02.2012

Ratio й Kills dividido por deaths, adciona isso no comando

pawn Код:
new ratio = Matou[playerid] / Morreu[playerid];
format(String, sizeof(String),"Ratio: %.2f",ratio);
SendClientMessage(playerid, 0x1E90FFAA,String);



Re: [PEDIDO] Mudar sistema de status - thaw_ps - 21.02.2012

Vlw Cara.

Problema resolvido obrigado a quem ajudou


Re: [PEDIDO] Mudar sistema de status - paulor - 21.02.2012

Quote:
Originally Posted by zbt
Посмотреть сообщение
Ratio й Kills dividido por deaths, adciona isso no comando

pawn Код:
new ratio = Matou[playerid] / Morreu[playerid];
format(String, sizeof(String),"Ratio: %.2f",ratio);
SendClientMessage(playerid, 0x1E90FFAA,String);
Dessa nгo sabia nгo. hehe