[Ajuda] Format
#3

Quote:
Originally Posted by SW1FTmeister
Посмотреть сообщение
Quais sгo essas linhas?

PS: Acho que nгo pode utilizar "||", utilize apenas "|"...
PS 2: Nгo faria mais sentido vocк ir buscar as informaзхes do clickedid em vez das informaзхes do playerid?
Nada a ver, o erro estб aqui
pawn Код:
GetPlayerName(playerid)
Ele estб a usar GetPlayerName da forma errada, isto porque o GetPlayerName nгo retorna o nome do jogador, ele apenas passa o nome do jogador para uma variбvel. Por isso seria necessбrio fazer
pawn Код:
new p_name[24];
GetPlayerName(playerid,p_name)
Depois era sу colocar

pawn Код:
format(dstring, sizeof(dstring), "Nome: %s || Score: %d || Grana: %d", p_name, GetPlayerScore(playerid), GetPlayerMoney(playerid));
Reply


Messages In This Thread
Format - by Insidious - 30.07.2014, 17:33
Re: Format - by SW1FTmeister - 30.07.2014, 18:04
Re: Format - by RebeloX - 30.07.2014, 18:28
Re: Format - by Insidious - 30.07.2014, 18:40
Re: Format - by SW1FTmeister - 30.07.2014, 18:44
Re: Format - by MatheusAlcapone - 30.07.2014, 18:46
Re: Format - by Insidious - 30.07.2014, 19:07
Re: Format - by Schocc - 30.07.2014, 19:52
Re: Format - by Insidious - 30.07.2014, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)