Jump to content
  • 0

dublu-clik pe nume player la TAB


Papana

Question

4 answers to this question

Recommended Posts

am pus asa:

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	new message[32];
	GetPlayerName(giveplayerid, sendername, sizeof(sendername));
	format(string, 256, "Name: %s, Ph: %d",sendername,PlayerInfo[giveplayerid][pPnumber]);
	SendClientMessage(playerid, COLOR_MAYOR, string);
	return 1;
}
dar nu stiu cum trb sa o definesc trebuie aici la public dar cum :|
roleplay.pwn(55455) : error 017: undefined symbol "giveplayerid"
roleplay.pwn(55455) : error 017: undefined symbol "sendername"
roleplay.pwn(55455) : error 029: invalid expression, assumed zero
roleplay.pwn(55455) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

Vezi asa

[pawn]public OnPlayerClickPlayer(playerid, clickedplayerid, source)

{

        new sendername[MAX_PLAYER_NAME];

new string[32];

GetPlayerName(clickedplayerid, sendername, sizeof(sendername));

format(string, 256, "Name: %s, Ph: %d",sendername,PlayerInfo[giveplayerid][pPnumber]);

SendClientMessage(playerid, COLOR_MAYOR, string);

return 1;

}[/pawn]

gXvsYS
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.