[DUV] OnPlayerClickPlayer.
#1

Estou tendo ploblemas..
to tentando colocar quando o cara clicar no tab aparece o numero e o nome..
sistema retirado do 'godfather' para aprender como codar um gm do 0.
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
Code:
{	
	new giveplayerid, moneys, idx;
    giveplayerid = ReturnUser(tmp);
    GetPlayerName(giveplayerid, sendername, sizeof(sendername));
	format(string, 256, "Nome: %s, Ph: %d",sendername,PlayerInfo[giveplayerid][pPnumber]);
	SendClientMessage(playerid, COLOR_GRAD1, string);
	return 1;
}
Erros:
Code:
(46265) : error: 017: undefined symbol "tmp"
(46265) : error: 017: undefined symbol "string"
(46265) : error: 017: undefined symbol "string"
(46265) : warning: 203: symbol is never used: "idx"
(46265) : warning: 203: symbol is never used: "moneys"
Reply
#2

voce quer que quando aperte TAB e clica no player e apareзa a opзгo.

SMS
LIGAR
. tals?
??
Reply
#3

Nгo,
Apensa apareзa no CHAT :


Nome: TAL Ph: TAL



esse treco de sms e tal, й um saco..
Reply
#4

Exclui esse new playayer sei la o que e add

new string [256];
Reply
#5

pora
desbuguei
sу que nгo ta vindo a mensagem T.T



Code:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{	
	new tmp[256];
  new string [256];
  new giveplayerid;
  giveplayerid = ReturnUser(tmp);
  GetPlayerName(giveplayerid, sendername, sizeof(sendername));
	format(string, 256, "Nome: %s, Ph: %d",sendername,PlayerInfo[giveplayerid][pPnumber]);
	SendClientMessage(playerid, COLOR_GRAD1, string);
	return 1;
}
Reply
#6

up
Reply
#7

Just , Por favor nгo de double post.

GRATO
Reply
#8

up d.
Reply
#9

Apaga isso tudo e meta isso

pawn Code:
{
new sendername[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(clickedplayerid, sendername, sizeof(sendername));
format(string, 256, "Nome: %s, Ph: %d",sendername,PlayerInfo[giveplayerid][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
Reply
#10

nem funfa esse dark
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)