[PEDIDO] Mudar sistema de status
#1

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

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.
Reply
#3

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

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.
Reply
#5

Agora deu certo Muito obrigado
Reply
#6

nds.
Reply
#7

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);
Reply
#8

Vlw Cara.

Problema resolvido obrigado a quem ajudou
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)